Re: Pre-fetching some URLs

From: John Saunders <John.Saunders@dont-contact.us>
Date: Fri, 25 Oct 1996 16:17:09 +1100

Ong Beng Hui wrote:

> > > "ttl_pattern ^http:// 7200 80% 10080"
> > > "ttl_pattern ^ftp:// 10080 80% 10080"
> > > "ttl_pattern \.gif$ 10080 80% 10080"
> > > "ttl_pattern /cgi-bin/ 0 0% 10080"
>
> The 3th field specified the TTL if the object doesn't have
> an expiry data.

I was under the impression that the TTL algorithm was as follows:

        if (page has expires header)
        {
                set TTL directly from expires header
        }
        else if (page has last_modified header)
        {
                calculate TTL as last_modified header * %factor (2nd column)
                if (calculated TTL is greater than max TTL (3rd column))
                {
                        set TTL to max TTL (3rd column)
                }
                else
                {
                        set TTL to calculated TTL
                }
        }
        else
        {
                set TTL to default TTL (1st column)
        }

This sound right?
-- +------------------------------------------------------------+
      . | John Saunders mailto:John.Saunders@scitec.com.au (Work) |
  ,--_|\ | mailto:john@nlc.net.au (Home) |
 / Oz \ | http://www.nlc.net.au/~john/ |
 \_,--\_/ | SCITEC LIMITED Phone +61 2 9428 9563 Fax +61 2 9428 9933 |
       v | "Alcatraz triathalon: dig, swim, run" |
          +------------------------------------------------------------+
Received on Thu Oct 24 1996 - 23:18:45 MDT

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