First, thanks for posting the great tutorial!
http://www.howtoforge.com/how-to-set...debian-etch-p2
We're trying this out now since we want to cache static pages generated by PHP. I don't know if this changes the classification of the page from "static" to "dynamic".
Anywho, we're interested in caching pages generated by PHP. We've got our PHP-based web app sending the correct Cache-control header to Squid (we're using Squid 3.0-STABLE12) and we're NOT sending any Expires or related headers. Using the Live HTTP Headers Firefox extension, I can see the response from Squid and it's generating a TCP_MISS each time I load the page:
Code:
HTTP/1.x 200 OK
Date: Fri, 23 Jan 2009 17:39:39 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.8
Cache-Control: must-revalidate, max-age=0, s-maxage=10800
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 11237
Content-Type: text/html; charset=ISO-8859-1
X-Cache: MISS from www.mysite.com
Via: 1.0 www.mysite.com (squid/3.0.STABLE12)
Connection: keep-alive
Code:
HTTP/1.x 200 OK
Date: Fri, 23 Jan 2009 17:41:26 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.8
Cache-Control: must-revalidate, max-age=0, s-maxage=10800
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 11233
Content-Type: text/html; charset=ISO-8859-1
X-Cache: MISS from www.mysite.com
Via: 1.0 www.mysite.com (squid/3.0.STABLE12)
Connection: keep-alive
Is it possible the tutorial doesn't apply to Squid 3? Any ideas?
Thanks!
Peace...