Search squid archive

Re: cache this request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, uhlar@xxxxxxxxxxx ; 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]

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux