Hi.
> -----Original Message-----
> From: Christophe Gravier
> [mailto:christophe.gravier@univ-st-etienne.fr]
> Sent: Sunday, January 22, 2006 5:26 AM
> To: squid-users@squid-cache.org
> Subject: [squid-users] squid 2 redirects but does not cache
>
>
> Hello,
>
> I am using squid as a reverse proxy between an apache2 and pound (load
> balancer on 161.3.50.16:81, that means same box
>
> My redirect configuration seems fine (It does serves me pages).
>
> Nevertheless, I don't think squid is caching anything :
> - /usr/sbin/ab sends me a low rate of service
> - I have in /var/logsquid/acces.log lines as follow:
>
> 1137929073.158 349 161.3.50.16 TCP_MISS/200 24213 GET
> http://161.3.50.16:81/VirtualHostBase/http/ist-guizay.univ-st-
> etienne.fr:80/VirtualHostRoot/Portail
>
> - DIRECT/161.3.50.16 text/html
> 1137929073.512 352 161.3.50.16 TCP_MISS/200 24213 GET
> http://161.3.50.16:81/VirtualHostBase/http/ist-guizay.univ-st-
> etienne.fr:80/VirtualHostRoot/Portail
>
> - DIRECT/161.3.50.16 text/html
SNIP
>
> When making a benchmark using ab apache program.
>
> If I got it right, TCP_MISS means it didn't find such thing
> in the cache
> (humm, well it dies is the same URLso hasn't it cached anything ?)
>
That is correct...
> At the same time, if I look at store.log while performing the
> ab test I
> have things like:
>
>
> 1137929162.873 RELEASE -1 FFFFFFFF
> 233D2D7FEE30EF9F169798C26676A2D4 200
> 1137929162 -1 946684800 text/html 23709/23709 GET
> http://161.3.50.16:81/VirtualHostBase/http/ist-guizay.univ-st-
> etienne.fr:80/VirtualHostRoot/Portail
> 1137929163.222 RELEASE -1 FFFFFFFF
> E0538F498902847CBFFB8229964A8F51 200
> 1137929163 -1 946684800 text/html 23709/23709 GET
> http://161.3.50.16:81/VirtualHostBase/http/ist-guizay.univ-st-
> etienne.fr:80/VirtualHostRoot/Portail
SNIP
>
> So it says "RELEASE" ? Does it means it using the url
> reference to serve
> the client, then releasing the data (trashing the cache each time) ?
>
Correct again.
> I am using a Debian etch testing GNU/Linux server up to date with
> official repository. That means Squid Cache: Version 2.5.STABLE12
>
> Here is my squid.conf (stripped of commentaries).
>
Other than...
> httpd_accel_with_proxy on # activer le proxy
...(are you using this as both a proxy AND an accelerator?) I don't see any problems.
>
> I mean, please point me to the problem so that I can handle it (my web
> site is not slow with one user, but what would happen when it'll come
> into production ? :x).
>
> Best Regards,
>
> Christophe
>
> --
> Christophe Gravier
> Laboratoire DIOM, groupe SATIn - Doctorant
> ISTASE - Ingénieur d'études
> Perso: http://perso.univ-st-etienne.fr/gravchri/
> SATIn: http://www.istase.com/satin
> Tel : 04 7748 5034
> A mediter: http://www.fsffrance.org/news/article2005-11-25.fr.html
>
A quick test using the livehttpheaders module of Mozilla (http://livehttpheaders.mozdev.org/) shows...
X-Cache: HIT from ist-guizay.univ-st-etienne.fr
X-Cache-Lookup: HIT from ist-guizay.univ-st-etienne.fr:79
for http://ist-guizay.univ-st-etienne.fr/. For http://ist-guizay.univ-st-etienne.fr/Portail it shows...
Set-Cookie: AnonymousVotedfff2a99c874341e3da249e301030afb8="10488"; Path=/; Expires=Wed, 19 Feb 2020 14:28:00 GMT
Setting a cookie makes the page uncachable. The good news is the rest of the objects referenced (images, css, js) are all cachable, and appear to be cached...
GET /Portail/portal_javascripts/ploneScripts2283.js HTTP/1.1
...
X-Cache: MISS from ist-guizay.univ-st-etienne.fr
X-Cache-Lookup: HIT from ist-guizay.univ-st-etienne.fr:79
See http://www.mnot.net/cache_docs/ for a more in-depth look at the cacheability of pages.
Chris
Received on Mon Jan 23 2006 - 12:36:57 MST
This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST