Re: [squid-users] how to cache non-cacheable objects?

From: Marc van Selm <marc.van.selm@dont-contact.us>
Date: Thu, 14 Jun 2001 13:26:13 +0200

At 10:12 PM 6/13/01 +1000, Kosseck / Adam James (TM) wrote:

>Hi,
>Im runing squid 2.4x under FreeBSD 4.3.
>
>I recently installed squid, and am connecting to a parent-cache provided
>by my ISP.
>My problem is, that when browsing, the majority of files I request are
>passed to my cache with the HTTP status code 304 - which according to the
>squid-cache faq are not cacheable.
>(http://www.squid-cache.org/Doc/FAQ/FAQ-12.html#ss12.23)

A 304 means "not modified". This is a reply on a IMS (give me the file if
modified since) from the proxy (or client) by the web-server. The file was
in the cache but you can't say it is fresh for ever (you can but that is
not wise because you can get outdated pages if you do). The IMS request is
send to the server to verify. If the cached file is older than the file on
the web server (so it is stale) the web server return the file. If it is
still good (fresh) the server returns 304.

The proxy - client conversation follows the same pattern.

The FAQ actually states "not modified" for 304...

PS you can play with the refresh rules and caching rules to change the
caching policies if you want to...

Regards, Marc

>Im assuming the code is appended by the ISP's cache, and is wondering if
>there is any way that I can get squid to cache these files.
>As there is little point me running a cache, if the ISP won't let me cache
>anything.....
>
>
>Regards
>Adam

--------------------------------------------------------------------
Marc van Selm
NATO C3 Agency
Communications Systems Division, A-Branch
E-mail: marc.van.selm@nc3a.nato.int (PGP capable)
--------------------------------------------------------------------
Private: selm@cistron.nl, selm@het.net, http://www.cistron.nl/~selm
Received on Thu Jun 14 2001 - 05:26:34 MDT

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