Re: [squid-users] Can a server force Squid to return cached objects (even if client uses no-cache)?

From: Henrik Nordstrom <[email protected]>
Date: Sun, 12 Dec 2004 19:09:18 +0100 (CET)

On Sun, 12 Dec 2004, R. Scott Perry wrote:

> I have a website that is currently being attacked by malware that is
> hiding behind over 10,000 web proxies, many of which are using Squid.

Yuck.

> However, the malware that is generating these hits is sending a
> "Cache-Control: no-cache, max-age=..." HTTP header. This header is causing
> Squid not to use the cached objects, but instead connect to the website
> again.

Yes, as mandated by the HTTP specifications shared caches MUST NOT use
cached content without first revalidating with the origin server is the
request contains any of the above..

> My question is whether or not there is anything that I can do from
> the web server to force Squid to return the cached objects, regardless of
> what the client does?

Nope. HTTP does not allow this.

> I'm guessing that neither a "Content-Location" HTTP
> header or a "301 Moved Permanently" HTTP response from the web server will
> override a "no-cache" from the client.

Correct. Redirect responses is just HTTP responses and cached like any
other. Same rules on when cached content may be used applies, only the
type of content cached differs.

Regards
Henrik
Received on Sun Dec 12 2004 - 11:09:26 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST