Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Examine the headers returned with wireshark or firebug in firefox (the latter is easier to prod around but the former will give you more low-level information if you end up needing that).</p> <p>Look for these items in the Response Headers (click on an item in the `Net' view to expand it and see request and response headers):</p> <ul> <li>Last-Modified date -> if not set to a sensible time in the past then it won't be cached</li> <li>Etags -> if these change every time the same item is requested then it will be re-fetched</li> <li>Cache-Control -> Requests from the client with max-age=0 will (I believe) request a fresh copy of the page each time</li> <li><strong>(edit)</strong> Expires header -> If this is set in the past (i.e. always expired) then squid will not cache it</li> </ul> <p>As suggested by araqnid, the HTTP headers can make a huge difference to what the proxy will think it can cache. If your back-end is using apache then test that static files served without going via any PHP or other application layer are cacheable.</p> <p>Also, check that the squid settings for maximum_object_size and minimum_object_size are set to sensible values (the defaults are 4Mb and 0kb, which should be fine), and maximum cache item ages are also set sensibly. (See <a href="http://www.visolve.com/squid/squid30/cachesize.php#maximum_object_size" rel="nofollow noreferrer">http://www.visolve.com/squid/squid30/cachesize.php#maximum_object_size</a> for this and other settings)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload