Re: Refresh rules

From: Irfan Akber <irfan@dont-contact.us>
Date: Fri, 25 Sep 1998 17:20:12 -0000

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. ?

Irfan Akber

----------
> From: Kamiski Nicolas <Nicolas.Kamiski@saint-gobain.com>
> To: 'Irfan Akber' <irfan@inet.com.pk>
> Cc: squid-users@ircache.net
> Subject: RE: Refresh rules
> Date: Friday, September 25, 1998 11:27 AM
>
> Hi,
> Normally on squid 1.2, you have a refresh_pattern option in squid.conf.
> For exemple I have:
> refresh_pattern -i \.gif$ 10080 90% 43200 override-expire
> reload-into-ims
> for all the gif.
>
> The rules to the regex is:
> #if you specify 'gif$' then it matches that string occuring only at the
> --end--
> of a string
> # the '.' match any single character
> # 'x match x
> # x+ match 1 or more x's
> # x* match 0 or more x's
> # \. really match a .
> # ^abc only match abc at the begining
> # abc$ only match abc at the end
> # [abc] match any single character that is a b or c.
> # [a-zA-Z] match any single upper or lower alphabetic character.
> # [^abc] match any singla character that isn't a b or c.
>
> For more documentation on this tag, have a look in squid.conf
> This is the theory.
> In practice there in no change in my acces.log, with or without it. :).
>
> Nicolas Kamiski.
> PS: I surely write some "conneries", so correct me ;)
> -----Message d'origine-----
> De: Irfan Akber [mailto:irfan@inet.com.pk]
> Date: vendredi 25 septembre 1998 18:18
> À: squid-users
> Objet: Refresh rules
>
>
> What rules should I specify to allow efficient caching. Is there a way
> to
> specify different refresh rules for index.html and different for
> .jpg/.gif.
> I want to cache images longer than the .html file.
>
> Thanks,
>
>
> Irfan Akber
Received on Fri Sep 25 1998 - 05:25:25 MDT

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