Issac Goldstand wrote:

- Cache-Control and Pragma headers must be stripped from requests into
the cache.

Why?  Just because you are in offline mode doesn't mean other proxies
between you and the client (or the client itself) are.

Other proxies don't matter in this case - the end goal is to protect the origin server from being hit unnecessarily by the cache, in response to headers added by some client.

If strict RFC compliant behaviour was in effect, a Cache-Control: no-cache from a client would invalidate a cached URL, forcing a conditional refresh from the origin server, which may either be missing or broken. The result is that a cached URL gets replaced by a page with a 5xx error in it.

I think I can get permission to send a patch of what we did so far, if
there's interest; it's crude and still not fully tested (and we haven't
merged in the recent mod_disk_cache changes), but it's simple and may be
a helpful starting point.

Let's take a look.

Regards,
Graham
--

Reply via email to