Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using a Reverse Proxy like Squid, Varnish or even Apache mod_cache would help you a lot regarding cache related HTTP headers. However if you need to have a full PHP version you should honor Cache-Control and then Expires because when Cache-Control and Expires are available in the same HTTP response Cache-Control takes precedence with the "max-age" attribute as described in <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3" rel="nofollow">http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3</a>:</p> <blockquote> <p>If a response includes both an Expires header and a max-age directive, the max-age directive overrides the Expires header, even if the Expires header is more restrictive. This rule allows an origin server to provide, for a given response, a longer expiration time to an HTTP/1.1 (or later) cache than to an HTTP/1.0 cache. This might be useful if certain HTTP/1.0 caches improperly calculate ages or expiration times, perhaps due to desynchronized clocks.</p> </blockquote> <p>You should also be very careful with the "no-cache" attribute which is kind of misleading as it requires a revalidation with the origin server, so it is a bit like a "store-but-do-no-serve-from-cache-without-revalidation" header.</p> <p>You can also ignore the Pragma header for two reasons:</p> <ul> <li>it is a request header, not a response header</li> <li>it is for HTTP 1.0 and the (almost entire) world is HTTP 1.1 now :)</li> </ul> <p>'Hope that helps :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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