Re: [squid-users] Squid not caching in accelerator mode

From: Chris Robertson <crobertson@dont-contact.us>
Date: Wed, 22 Nov 2006 16:35:56 -0900

Mohan wrote:
> I wrote a test servlet to fix the Session id and the Cache-control
> headers. The only header that my server is setting now is the max-age
> header , set to 3600. Even with this, squid doesnot seem to cache the
> reponse. Can you look at the log and help me troubleshoot ?
>
>
> 2006/11/22 16:19:47| init-ing hdr: 0x9dc44cc owner: 1
> 2006/11/22 16:19:47| parsing hdr: (0x9dc44cc)
> User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6
> OpenSSL/0.9.7a ipv6 zlib/1.1.4
> Host: russia:3128
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>
> 2006/11/22 16:19:47| creating entry 0x9dfca80: near 'User-Agent:
> curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a ipv6
> zlib/1.1.4'
> 2006/11/22 16:19:47| created entry 0x9dfca80: 'User-Agent: curl/7.10.6
> (i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4'
> 2006/11/22 16:19:47| 0x9dc44cc adding entry: 49 at 0
> 2006/11/22 16:19:47| creating entry 0x9db8e58: near 'Host: russia:3128'
> 2006/11/22 16:19:47| created entry 0x9db8e58: 'Host: russia:3128'
> 2006/11/22 16:19:47| 0x9dc44cc adding entry: 24 at 1
> 2006/11/22 16:19:47| creating entry 0x9c47a08: near 'Pragma: no-cache'
> 2006/11/22 16:19:47| created entry 0x9c47a08: 'Pragma: no-cache'
> 2006/11/22 16:19:47| 0x9dc44cc adding entry: 34 at 2
> 2006/11/22 16:19:47| creating entry 0x9d406e8: near 'Accept: image/gif,
> image/x-xbitmap, image/jpeg, image/pjpeg, */*'
> 2006/11/22 16:19:47| created entry 0x9d406e8: 'Accept: image/gif,
> image/x-xbitmap, image/jpeg, image/pjpeg, */*'
> 2006/11/22 16:19:47| 0x9dc44cc adding entry: 0 at 3
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 47
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 38
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 9
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 51
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 38
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 9
> 2006/11/22 16:19:47| The request GET
> http://russia.nscp.aoltw.net:3128/cachetest?text=2 is ALLOWED, because
> it matched 'all'
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 34
> 2006/11/22 16:19:47| 0x9dc44cc: joining for id 34
> 2006/11/22 16:19:47| 0x9dc44cc: joined for id 34: no-cache
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 7
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 7
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 37
> 2006/11/22 16:19:47| 0x9dc44cc lookup for 51
> 2006/11/22 16:19:47| aclMatchRegex: match '\?' found in '/cachetest?text=2'
>

Default squid.conf has the following two lines...

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

...which specifically deny caching for any urls that contain a question
mark or the string cgi-bin. This appears to be the issue here...

>
>
>
> ------------------------------------------
> Mohan Rao
> (650 937 3369) / mohansrao@aol.com
> AIM : mohansrao
> MBA at Santa Clara University
> ------------------------------------------
>
>

Chris
Received on Wed Nov 22 2006 - 18:36:44 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:03 MST