[squid-users] accelerator override caching of dynamic pages

From: Charlie Schofield <charlie@dont-contact.us>
Date: Wed, 1 Oct 2003 13:42:37 +0100

Hi everybody,
I am trying to use squid in accelerator mode to cache frequently requested
pages with query strings.
I realise that the headers of the pages do not pass the cachability tests
but I want to override them as I know the frequency with which these pages
will change and I need to reduce load on our web servers.

The various setup and log files are below. Can anybody help me to override
the settings from the web server so that I stop getting TCP_MISS?
Unfortunately I cannot change the headers on the web server.

thanks in advance,
Charlie Schofield

I have set the following in squid.conf:
acl QUERY urlpath_regex \?
no_cache allow QUERY
refresh_pattern \? 60 50% 4320 ignore-reload override-expire
override-lastmod reload-into-ims

as a test to try and catch everything with a query string for 60 mins

access log always comes up with a TCP_MISS
1065004636.275 70 127.0.0.1 TCP_MISS/200 4319 GET
http://webserverurl/xml/nav/nav2.jhtml? - DIRECT/136.121.243.198 text/xml

The headers are as follows:
GET
http://localhost:3128/xml/nav/nav2.jhtml?styleSheet=/css/h_home.css&ie=true&cached=&xmlpath=/xml/nav/nav2.jhtml&activenav=&
HTTP/1.0
Accept-Language: en-gb
Pragma: no-cache
Accept: */*
Host: localhost:3128
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.0.3705; .NET CLR 1.1.4322)
Cookie: JSESSIONID=NDK5KIJ1GUE2RQFIAIISFE4AVABQKIV0
Proxy-Connection: Keep-Alive

HTTP/1.0 200 OK
Expires: Fri, 30 Oct 1998 14:19:41 GMT
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/xml; charset=UTF-8
Connection: close
Set-Cookie: JSESSIONID=M2YU1IZQTY4HRQFIAIISFE4AVABQKIV0; path=/
Date: Wed, 01 Oct 2003 10:37:26 GMT
Server: Apache/1.3.27 (Unix)
X-Cache: MISS from k03349
Content-Length: 3978
Received on Wed Oct 01 2003 - 06:42:49 MDT

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