Re: [squid-users] problems with HTTP acceleration

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 14 Oct 2004 12:28:49 +0200 (CEST)

On Wed, 13 Oct 2004, Octopus wrote:

> ==> /var/log/squid/store.log <==
> 1097694326.802 RELEASE -1 FFFFFFFF 5C70CA242C6B8B71BE14082A80D515C5 304
> 1097694336 -1 -1 unknown -1/0 GET
> http://HOST/webnativedoc/NEW/top_header.gif

Clear your browser cache before you start testing.

> ==> /var/log/squid/access.log <==
> 1097694562.077 326 192.168.2.1 TCP_MISS/200 4586 GET
> http://HOST/webnative/getimage?-small+/mnt/IDERAID_01/tsi_1/current/covers/Jun2003.eps - DIRECT/X.X.X.X image/jpeg

http://www.mnot.net/cacheability/

Also note that Squid won't cache requests requiring authentication unless
the server says the content is public (Cache-Control: public). This is
mandated by the HTTP RFC 2616.

> root # curl --head
> http://LOGIN:PASSWORD@HOST/webnativedoc/images/NEW/wn_high.gif
> HTTP/1.1 200 OK
> Date: Wed, 13 Oct 2004 18:56:02 GMT
> Server: Apache/1.3.14 (Unix)
> Last-Modified: Fri, 09 Jan 2004 02:18:29 GMT
> ETag: "2c117ba-175-3ffe0f75"
> Accept-Ranges: bytes
> Content-Length: 373
> Content-Type: image/gif

This would have been cached if it wasn't for the fact that authentication
is required and the server has not indicated the response is public.

> root # curl --head
> http://LOGIN:PASSWORD@HOST/webnative/getimage?-small+/mnt/IDERAID_01/tsi_1/current/covers/Jun2003.eps
> HTTP/1.1 200 OK
> Date: Wed, 13 Oct 2004 19:08:33 GMT
> Server: Apache/1.3.14 (Unix)
> Content-length: 4301
> Content-Type: image/jpeg ; name="Jun2003.eps"

This normally won't be cached as there is no information to base freshness
upon. No Expires, not Last-Modified, not Cache-Control: max-age. Nothing.

On both, see refresh_pattern, but you still need to solve the "public"
criteria.

Regards
Henrik
Received on Thu Oct 14 2004 - 04:28:52 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST