Anton Melser wrote:
On 17/05/07, Anton Melser <melser.anton@xxxxxxxxx> wrote:
Hi,
I am trying to understand why certain objects are cached and others
not (in a web accelerator setup). For example, squid is caching
http://my.site.org/images/hello.gif
but not
http://my.site.org/js/hello.js
Both files are well under any limits (< 2KB)
But for another site, pretty much everything is getting cached, i.e.,
http://my.othersite.org/images/hello.gif
and
http://my.othersite.org/js/hello.js
are giving hits.
The only difference I could see in the headers (as reported via the
firefox plugin httpheaders) is that the first js is gzipped. Could
that be it? I tried disabling the apache gzip exclusion thingie
#acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache
But that didn't seem to change anything. Does anyone have any pointers?
Cheers
Anton
Here is what httpheaders gives
http://www.my.domain.name/js/general.js
GET /js/general.js HTTP/1.1
Host: www.my.domain.name
<snip other headers>
HTTP/1.x 200 OK
Date: Thu, 17 May 2007 15:31:02 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5
PHP/5.0.5-1 mod_perl/1.999.21 Perl/v5.8.7
X-Powered-By: PHP/5.0.5-1
Set-Cookie: PHPSESSID=27ed1a75d667f05cc961ff76df8bee61; path=/
These would be the problem:
Expires: Sat, 19 May 2007 17:31:02 GMT
Cache-Control: private
Pragma: cache
<snip other headers>
Apparently the "private" is a show-stopper cache control action,
preventing secure data from being stored.
Amos