<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Greg,<br>
      <br>
      I use this combo to check if request is cached or no and why:<br>
      debug_options 20,9 27,9 31,9 70,9 82,9 22,9 84,9 90,9<br>
      <br>
      Then in cache.log file you can search by 'YES' or 'NO' (uppercase)
      to see if the content is cacheable (and cached) or not and the
      reason of this decision. Hope this will help.<br>
      <br>
      Best wishes,<br>
      Pavel<br>
      <br>
      On 02/24/2015 03:54 PM, Greg wrote:<br>
    </div>
    <blockquote
cite="mid:CALXdjAKvTcvDhcgih3-FXuohh1A5xVqMvv792KXPN7ZifLSVkw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Hi all,</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">I'm new to
          squid administration, with basic *nix admin skills. My task
          now is to replace an old Squid reverse proxy server (3.1.15 on
          an old Fedora) with a new one (Squid 3.3.8 on Ubuntu 14 LTS)
          and ran into a problem.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">I've spent 2
          days tweaking-googling-debugging, now looking for some help...</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Problem is,
          with the ~same configuration, the old Squid caches HTML pages
          well and the new doesn't. This is a major concern, we're using
          Squid exactly to do that and get the load off our appservers.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">In this first
          mail, I'm only asking for a hint on what debug_options to use.
          In previous list emails I've seen that some details help, so
          here they are:</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">- Reverse
          proxy, port 80 only, one uplink straight to the app servers.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">- Pretty
          standard configuration, standard refresh_patterns.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">- Disk and
          memory cache, disk cache initialised with -z.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">- Clocks are in
          sync (except for the old proxy server) using ntpd.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">
          <div class="gmail_default">
            <div class="gmail_default">- Squid gives HITs for
              favicon.ico and RSS feeds only - these have different
              headers and mimetypes compared to HTML files (and
              that's by design).</div>
            <div>- This new server seems to save accessed HTML files on
              disk but still gives X-Cache-Lookup:MISS for all of them
              later.<br>
            </div>
          </div>
          <div class="gmail_default">
            <div class="gmail_default">- I've found the debug_options
              sections page but section names are ambiguous for someone
              who's not a Squid programmer. I had to download the source
              code, analysed it and tried "debug_options 11,1 22,6 85,3
              88,5 33,1 31,5 90,5" which is too much and "debug_options
              88,5 85,5 22,6 11,5 33,1" which might be too little.<br>
            </div>
            <div>
              <div class="gmail_default">- Headers look okay
                (Cache-Control, Pragma, Vary), stale/fresh calculation
                looks okay (pages are deemed fresh) in the debug log.<br>
              </div>
              <div class="gmail_default">
                <div class="gmail_default">- The best I got so far is
                  this: "client_side_reply.cc(1618) identifyFoundObject:
                  clientProcessRequest2: StoreEntry is NULL -  MISS",
                  even for pages I see in the disk cache -- I'd like to
                  know why does it occur, probably need some more good
                  debug_options. I don't understand the code too well,
                  don't know which direction to take.<br>
                </div>
                <div><br>
                </div>
                <div>Please suggest some more good debug_options to
                  continue with.</div>
              </div>
            </div>
          </div>
          <div><br>
          </div>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Best regards,</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Greg</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">
          <div class="gmail_default">PS. Also, I'll submit another mail
            with the details of the problem + the config, hoping someone
            spots a problem right away.</div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
squid-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>