Re: [squid-users] Caching a Script

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 18 Jul 2002 22:44:34 -0600 (MDT)

On Thu, 18 Jul 2002, David Groden wrote:

> The only way I managed to get a
> "TCP_HIT" for my script from squid was to drop a couple of lines in
> httpd.conf that made apache send out an "Expires: (now plus 1 month)" header
> with the script. As soon as I did that, it was all "TCP_HIT"'s. Now, squid

This is the right thing to do, IMO.

> is successfully returning the cached version of hits to my script, but the
> side effect of the "Expires" header, which is to cache the hit at every
> cache along the way as well as the client's browser (and browser memory!),
> is unacceptable.

You can put the "Expires: (now plus 1 month)" directive in an .htaccess
file, or maybe inside a <Location> wrapper in httpd.conf so it
only applies to that particular script.
Received on Thu Jul 18 2002 - 22:44:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:18 MST