[squid-users] Re: caching dynamic pages

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

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 - 10:32:16 MST

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