Re: Refresh rules

From: Oskar Pearson <oskar@dont-contact.us>
Date: Fri, 25 Sep 1998 21:10:10 +0200

Hi

> What about html files. e.g when accessing www.yahoo.com I want the html
> file be refreshed after 2 days and gif/jpg after 1 week. Is there a way to
> specify index.html refresh rule. ?

the patterns work on a 'first match' rule. You can do something like:

refresh_pattern/i (\.html$|\.htm$|/$)i 0 25% 3600
refresh_pattern/i (\.text$|\.txt$) 0 25% 3600
refresh_pattern/i (\.gif$|\.jpg$|\.jpeg$|\.jpe$) 0 75% 7200
refresh_pattern . 0 50% 3600

If it's html, it's cached for max 2.5 days. If i'ts txt, the same, if it's
jpg, cache it longer. the default will cache for shorter for jpgs.
Received on Fri Sep 25 1998 - 12:11:29 MDT

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