Search squid archive

reverse proxy configuration still MISSes some pages which should be a HIT....

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

 



Hi.

I'm using squid 3.1.16, compiled from source with:
./configure --prefix=/usr/local/squid-3.1.16/ --enable-useragent-log
--enable-referer-log --disable-ident-lookups --with-large-files

Running on a 64bit Debian 6 box.


If I send a request:  Sent by doing:  cat file | nc proxy.example.com 80 
==============================================================================
HEAD / HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: eplicaWebVisitor=-926431977; fptab=skjalftar; JSESSIONID=C44066454BC7A2C8A052BC0C69D44620
DNT: 1
Connection: keep-alive
If-Modified-Since: Sat, 30 Oct 2011 16:42:36 GMT
Cache-Control: max-age=0
If-None-Match: S-is-94659-1319906578198


==============================================================================

I get back:

==============================================================================
HTTP/1.0 200 OK
Date: Mon, 31 Oct 2011 18:22:45 GMT
Set-Cookie: JSESSIONID=05358DBC68CE264A981D34FB8322CADC; Path=/
Powered-By: Eplica WMS 2.0 (2.0-SNAPSHOT)
Last-Modified: Mon, 31 Oct 2011 18:22:21 GMT
Expires: Mon, 31 Oct 2011 18:22:55 GMT
Cache-Control: public, must-revalidate, max-age=10
ETag: S-is-94983-1320085375761
Content-Type: text/html;charset=UTF-8
Content-Language: is-IS
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 18425
X-Cache: MISS from proxy.example.com
Via: 1.0 proxy.example.com (squid/3.1.16)
Connection: keep-alive

==============================================================================

If I send the same request, but leave out the "If-None-Match", I get:
HTTP/1.0 200 OK
Date: Mon, 31 Oct 2011 18:24:10 GMT
Powered-By: Eplica WMS 2.0 (2.0-SNAPSHOT)
Last-Modified: Mon, 31 Oct 2011 18:23:22 GMT
Expires: Mon, 31 Oct 2011 18:24:20 GMT
Cache-Control: public, must-revalidate, max-age=10
ETag: S-is-94983-1320085460159
Content-Type: text/html;charset=UTF-8
Content-Language: is-IS
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 18425
Age: 3
X-Cache: HIT from proxy.example.com
Via: 1.0 proxy.example.com (squid/3.1.16)
Connection: keep-alive

==============================================================================

Hmm... I *think* the needed lines from squid.conf would look like, 
but please correct me if this is not enough to determine the cause:

http_port 1.2.3.4:80 accel defaultsite=www.example.com vhost ignore-cc

cache_peer 1.2.3.99 parent 80 0 no-query originserver name=myAccel


Now, is there a simple(ish) way of throwing away / ignoring that 
"If-None-Match" header, or configure squid in other ways, to go to the
cache, and create a HIT?

Thanks,
--
EinarI


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

  Powered by Linux