mod_cache and mod_deflate issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hi All,
I have the following configuration in my httpd.conf
LoadModule perl_module modules/mod_perl.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule headers_module modules/mod_headers.so
CacheEnable disk /
CacheRoot /data/cache/
CacheMaxExpire 28800
SetOutputFilter DEFLATE
<Files ~ "\.html$">
SetOutputFilter DEFLATE
Header merge Cache-Control "max-age=360, public"
SetHandler perl-script
PerlResponseHandler MyApp::HtmlHandler::handler
</Files>
Where MyApp::HtmlHandler::handler converts an xml file to html if it not exits else serve the existing html file .
But when I when try accessing http://<myserevr>:<myport>/specs/Template.html second time I seed this info in log file , seems like each time its get the file source
[Mon Aug 17 01:30:10 2009] [debug] cache_storage.c(272): Cached response for /specs/Template.html isn't fresh. Adding/replacing conditional request headers.
Whats wrong in my config ?
This is the header info , I can see two Cache-Control tag
GET /specs/Template.html HTTP/1.1
Host: myserver.com:44073
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
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
Keep-Alive: 300
Connection: keep-alive
If-None-Match: "8000000a-9743-470dd3e785740"-gzip
Cache-Control: max-age=0
HTTP/1.x 200 OK
Date: Mon, 17 Aug 2009 09:24:05 GMT
Server: Apache/2.2.9
Last-Modified: Tue, 11 Aug 2009 12:57:25 GMT
Etag: "8000000a-9743-470dd3e785740"-gzip
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=60, public
Content-Length: 7030
Connection: close
Content-Type: text/html
--
--Shibi Ns--
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]