Re: caching dynamic pages (CGI)

From: Henny Bekker <H.Bekker@dont-contact.us>
Date: Wed, 30 Sep 1998 02:29:11 +0200 (METDST)

Hi Perrin,

> > > Sorry to ask what seems like a stupid question, but how do I get Squid
> > > to cache dynamically generated pages? I'm trying to use it for
> > > acceleration of an existing server, and want to cache the results of CGI
> > > requests for 24 hours, even though they don't send last_modified or
> > > expires headers.
> > >
> > > The basic proxying/acceleration is working fine, but it isn't caching
> > > the CGI pages. Do I need to turn off some stopwords somewhere?
> > >
> > For squid v1.1.* look in the squid.conf file for "hierarchy_stoplist" and
> > "cache_stoplist".. The default setting is not to cache URL's with a "?"
> > or "cgi-bin".. You also have to set the "refresh_pattern" for the URL's
> > containing "cgi-bin" ..
>
> I removed the hierarchy_stoplist lines and the acl QUERY lines and I'm
> still getting nowhere. My refresh_pattern looks like this:
>
Eh.. Removing the hierarchy_stoplist lines does not do the job because:
   The default is to directly fetch URLs containing 'cgi-bin' or '?'.
and in the default situation, the hierarchy_stoplist are escaped (e.g. does
not exist)..

> refresh_pattern cgi-bin 600 0% 4320 ignore-reload override-expire
> override-lastmod
>
> I know that's extreme, but I just want to see it work before I start
> toning it down.
>
> I'm using 1.2beta25.
>
Also with Squid v1.2-beta.25 the remove of the "hierarchy_stoplist" lines
activates the default situation, thus disabling URL's containing 'cgi-bin'
or '?'...

Cheers, Henny

-- 
-----------------------------------------------------------------------------
E-Mail: Henny.Bekker@accu.uu.nl   ! Disclaimer: The main obstacle to progress
http    http://www.uu.nl/~henny   !             progress is not ignorance,but
PTT:    Voice: +31 30 2536971 Fax: +31 30 2531633 ! the illusion of knowledge
X500:   cn=Henny Bekker, ou=Ontwikkeling, ou=ACCU, o=UU, c=NL            o
Paper:  H.J.Bekker, Utrecht University, Computer Centre              _  /- _
        Po Box 80011, 3508 TA  Utrecht  Nederland                   (_) > (_)
-----------------------------------------------------------------------------
Received on Tue Sep 29 1998 - 17:30:04 MDT

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