Re: Whay are code 340 pages not cahced? and how do I force them to be?

From: Stan Brown <stanb@dont-contact.us>
Date: Fri, 11 Feb 2000 08:28:57 -0500 (EST)

On Thu Feb 10 23:18:23 2000 Henrik Nordstrom wrote...
>
>
>http://www.ab.com/ reports the HTTP headers
>---------------
>HTTP/1.0 200 OK
>Server: Netscape-Enterprise/3.6 SP1
>Date: Fri, 11 Feb 2000 03:58:30 GMT
>Content-type: text/html
>---------------
>
>This reply does not carry any information giving a hint to Squid how
>long it may be cached;
>* There is no Last-Modified timestamp
>* There is no Expires header setting a explicit expiry time
>* There is no Cache-Control header telling Squid it may be cached
>
>On such replies the default configuration considers the reply dynamic
>and uncacheable.

        OK, I think I am begining to fet a handle on this. Thanks for being
        such a patient teacher.
>
>You can tell Squid to cache dynamically generated content which isn't
>explicitly forbidden to be cached by tuning your refresh_pattern to have
>a min age other than 0. The default meaning of the min age in
>refresh_pattern is to act as a default TTL if no expiry/modification
>information is available. However, keep in mind that this may cause some
>content to be cached which aren't meant to be cached. Also, replies
>without a Last-Modified timestamp cannot be revalidated by the origin
>server, and will thus be fetched in whole if the ttl has expired.

        I am trying to do this, but it's not working. I am certain it's because
        of my lack of understanding. here is teh relevant portion oof my
        squid.conf file:

        refresh_pattern ^ftp: 1440 20% 10080
        refresh_pattern ^gopher: 1440 0% 1440
        refresh_pattern .gif$ 4320 90% 8640 override-expire
        override-la
        stmod
        refresh_pattern .jpg$ 4320 90% 8640 override-expire
        override-la
        stmod
        refresh_pattern . 2880 60% 4320

        I decided to get aggressive about .gif's and .jpegs, at least _I think_
        this is aggresive.

        Still I thought that the last line would cause any page without the
        information you mention above to cached. Am I wrong?

        I want to _agresivly_ cahce pages. I would arther err in the directiion
        of breaking things such as hotmail , in order to be able to serve more
        static vendor information sites locally.

        Any sugestions as to a better set of rules to put here?
>
>Most of this can be diagnosed from the store.log. The important colums
>are the LMT and Expires columns. If both of these are -1 then Squid has
>nothing to go on.
>
        I started there, but some of the replies I got said it was "too
        techniacl". and that I should look at access.log instead :-(

        Thanks again for all of your patient help to such a newbie on this.
>--
>Henrik Nordstrom
>Squid hacker
>

-- 
Stan Brown     stanb@netcom.com                                    843-745-3154
Westvaco
Charleston SC.
-- 
Windows 98: n.
	useless extension to a minor patch release for 32-bit extensions and
	a graphical shell for a 16-bit patch to an 8-bit operating system
	originally coded for a 4-bit microprocessor, written by a 2-bit 
	company that can't stand for 1 bit of competition.
-
(c) 2000 Stan Brown.  Redistribution via the Microsoft Network is prohibited.
Received on Fri Feb 11 2000 - 06:40:53 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:11 MST