[squid-users] Re: caching dynamic pages

From: Tong Sun <sun_tong_001@dont-contact.us>
Date: Wed, 12 Nov 2003 21:46:51 -0500

Thanks for the input, Henrik. If I didn't understand wrong, that's what
I've been trying to do. Shouldn't the line in my squid.conf forces Squid
to ignore the expiry information?

refresh_pattern . 0 20% 4320 override-expire

I might be missing something here. Please help.

> This is a dynamic page and does not have any expiry information. Because
> of this it won't be cached by Squid unless you force Squid to via the
> refresh_pattern directive.
>
> Regards
> Henrik
>
> On Wed, 12 Nov 2003, Tong Sun wrote:
>
> > Thanks Henrik for the input.
> >
> > I've changed the following in /etc/squid/squid.conf
> >
> > #hierarchy_stoplist cgi-bin #?
> > hierarchy_stoplist
> >
> > #acl QUERY urlpath_regex cgi-bin #\?
> > acl QUERY urlpath_regex nouse
> > no_cache deny QUERY
> >
> > refresh_pattern . 0 20% 4320 override-expire
> >
> > Then I test squid from my local server instead of google. Here is the result:
> >
> > date -u; client -v http://localhost/cgi-bin/svr_probe/sh-cgi-env.cgi
> >
> > Wed Nov 12 17:12:02 UTC 2003
> > headers: 'GET http://localhost/cgi-bin/svr_probe/sh-cgi-env.cgi HTTP/1.0
> > Accept: */*
> >
> > '
> > HTTP/1.0 200 OK
> > Date: Wed, 12 Nov 2003 17:12:02 GMT
> > Server: Apache/2.0.40 (Red Hat Linux)
> > Content-Type: text/html; charset=ISO-8859-1
> > X-Cache: MISS from xpt
> > Proxy-Connection: close
> >
> > <pre>
> > CGI/1.0 test script report:
> >
> > [...]
> >
> > But it is still not cached according to store.log.
> >
> > How can I make it works? thanks

-- 
SUN, Tong
Received on Wed Nov 12 2003 - 19:47:11 MST

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