Re: [squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?

From: Michael Pye <michael@dont-contact.us>
Date: Sat, 20 May 2006 14:07:25 +0100

Ralph Corderoy wrote:
> Expires -
> Cache-Control -
> Last-Modified -

These are the important headers which squid uses to determine if it can
cache the object and how long for. A javascript file is usually static
so would normally be served with at least a Last-Modified header. If it
is not then perhaps the .js files are being dynamically created with
each request. From your squidclient output it looks like none of those
headers are returned.

To get these cached you will need a refresh pattern that forces the file
to be cached without these headers, i.e. where the minumum field is more
than 0. A refresh pattern of:
refresh_pattern \.js 10 50% 20
would cache all .js file even those without the above headers for at
least 10 minutes.

--
Michael
Received on Sat May 20 2006 - 07:07:28 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT