Re: [squid-users] cache this request

From: Matus UHLAR - fantomas <[email protected]>
Date: Thu, 28 Sep 2006 12:06:10 +0200

On 28.09.06 11:55, Emilio Casbas wrote:
> I need to cache in our proxy a request such this one,
>
> acl adiservlet urlpath_regex /adi/servlet/Web?nexus=
> no_cache allow adiservlet
>
> This acl is before the no_cache directives from squid default, but i
> don't know if this can work because the parameter after the "?".
> Is this correct?

Requests containing '?' generally can be cached, but default squid config
contains directives that prevents it:

#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY

> orfeo.unav.es - - [28/Sep/2006:11:47:23 +0200] "GET
> http://www.unav.es/adi/servlet/Web? HTTP/1.0" 200 6276 TCP_MISS:DIRECT
> dynamicIP.rima-tde.net - - [28/Sep/2006:11:47:33 +0200] "GET
> http://www.unav.es/adi/servlet/Web? HTTP/1.1" 200 7577 TCP_MISS:DIRECT
> dynamicIP.rima-tde.net - - [28/Sep/2006:11:47:47 +0200] "GET
> http://www.unav.es/adi/servlet/Web? HTTP/1.1" 200 6867 TCP_MISS:DIRECT
> dynamicIP.rima-tde.net - - [28/Sep/2006:11:48:09 +0200] "GET
> http://www.unav.es/adi/servlet/Web? HTTP/1.1" 302 305 TCP_MISS:DIRECT
> (This log is from a reverse proxy)
>
> so i think that isn't working.

However, the query string must be the same to cache it, you have query
strings stripped off probably (it's also default)

At last, query result must be cacheable (search for cacheability of
http://www.unav.es/adi/servlet/Web?... , there's checking engine somewhere)

-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Where do you want to go to die?" [Microsoft]
Received on Thu Sep 28 2006 - 04:06:17 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:04 MDT