Re: Forced caching of cgi-gifs

From: Kendall Lister <kendall@dont-contact.us>
Date: Wed, 9 Feb 2000 09:47:15 +1100 (EST)

On Tue, 8 Feb 2000, Alessio Sangalli wrote:

> At 10.11 08/02/00 -1000, Clifton Royston wrote:
>
> >What you need to do is add some patterns which will match the content
> >from the bogus sites, and then use that to exclude those from the
> >no_cache case, like this:
> >
> >acl BOGUSSITE dst_domain .bogussite.com
> >acl GIFS url
> ># Now exclude and make cacheable all URLs ending in GIF from site...
> >no_cache allow BOGUSSITE QUERY GIFS
> ># ... before the default case
> >no_cache deny QUERY
>
> umh... it doesn't work, or (likely) I haven't understood very well.
>
> and the gifs are identified with a "gif?" substring in the URL.
>
> acl CENTROHL dst_domain .centrohl.it
> acl GIF url gif?
> no_cache allow CENTROHL GIF

This does not work because 'gif?' is not a regex - you need '\.gif$'
(which actually appears in one of the sample regexes in
squid.conf.default) to match URLs ending in '.gif', and you might need to
consider using the '-i' switch to disable case sensitivity.

--
 Kendall Lister, Systems Operator for Charon I.S. - kendall@charon.net.au
  Charon Information Services - Friendly, Cheap Melbourne ISP: 9589 7781
Received on Tue Feb 08 2000 - 15:54:49 MST

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