RE: mod_cache serves diffrent content for Firefox and Chrome

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

 





----------------------------------------
> Date: Tue, 14 Jun 2011 12:18:21 +0000
> From: i.galic@xxxxxxxxxxxxxx
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  mod_cache serves diffrent content for Firefox and Chrome
>
>
>
> ----- Original Message -----
> >
> > Hi!
> >
> > I'm using following configuration of mod_cache:
> >
> > CacheEnable disk /
> > CacheIgnoreCacheControl On
> >
> > 
> >   CacheIgnoreNoLastMod On
> >   CacheDefaultExpire 240
> >     
> >     CacheEnable mem /
> >     MCacheSize 4096
> >     MCacheMaxObjectCount 100
> >     MCacheMinObjectSize 1
> >     MCacheMaxObjectSize 2048
> >   
> > 
> >
> > Depending on browser I'm using, I get different responses:
>
> Why don't you take a look at the exact headers both browsers are sending?
> FireBug and ChromeBug should be able to help you with that.
>

Sorry, I omitted them since they look almost the same:

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: chrome://global/locale/intl.properties
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

IE seems to behave exactly like firefox. 

How's it possible that this code:
[debug] cache_storage.c(272): Cached response for /resources/js/global.js isn't fresh.  Adding/replacing conditional request headers.
is only executed for Chrome requests.


> > Firefox:
> > 10.217.2.251 - - [14/Jun/2011:11:54:58 +0200] "GET
> > /resources/js/global.js HTTP/1.1" 200 3268 "-" "Mozilla/5.0 (X11;
> > Linux
> > x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"
> >
> > Chrome:
> > 10.217.2.251 - - [14/Jun/2011:11:54:13 +0200] "GET
> > /resources/js/global.js HTTP/1.1" 200 3710 "-" "Mozilla/5.0 (X11;
> > Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko)
> > Chrome/11.0.696.65 Safari/534.24"
> >
> > Firefox:
> > [Tue Jun 14 11:59:43 2011] [debug] mod_disk_cache.c(485): disk_cache:
> > Recalled cached URL info header http://url/resources/js/global.js?
> > [Tue Jun 14 11:59:43 2011] [debug] mod_disk_cache.c(758): disk_cache:
> > Recalled headers for URL http://url/resources/js/global.js?
> > [Tue Jun 14 11:59:43 2011] [info] Incoming request is asking for a
> > uncached version of /resources/js/global.js, but we know better and
> > are ignoring it
> > [Tue Jun 14 11:59:43 2011] [debug] mod_cache.c(282): cache: running
> > CACHE_OUT filter
> > [Tue Jun 14 11:59:43 2011] [debug] mod_cache.c(296): cache: serving
> > /resources/js/global.js
> >
> > Chrome:
> > [Tue Jun 14 11:59:24 2011] [debug] mod_disk_cache.c(485): disk_cache:
> > Recalled cached URL info header
> > http://host:80/resources/js/global.js?
> > [Tue Jun 14 11:59:24 2011] [debug] mod_disk_cache.c(758): disk_cache:
> > Recalled headers for URL http://host:80/resources/js/global.js?
> > [Tue Jun 14 11:59:24 2011] [info] Incoming request is asking for a
> > uncached version of /resources/js/global.js, but we know better and
> > are ignoring it
> > [Tue Jun 14 11:59:24 2011] [debug] cache_storage.c(272): Cached
> > response for /resources/js/global.js isn't fresh.  Adding/replacing
> > conditional request headers.
> > [Tue Jun 14 11:59:24 2011] [debug] mod_cache.c(131): Adding
> > CACHE_SAVE filter for /resources/js/global.js
> > [Tue Jun 14 11:59:24 2011] [debug] mod_cache.c(138): Adding
> > CACHE_REMOVE_URL filter for /resources/js/global.js
> > [Tue Jun 14 11:59:24 2011] [debug] mod_proxy_ajp.c(45): proxy: AJP:
> > canonicalising URL //localhost:8009/myapp/resources/js/global.js
> > [Tue Jun 14 11:59:24 2011] [debug] proxy_util.c(1494): [client
> > 10.217.2.251] proxy: ajp: found worker ajp://localhost:8009/myapp/
> > for ajp://localhost:8009/myapp/resources/js/global.js
> > [Tue Jun 14 11:59:24 2011] [debug] mod_proxy.c(993): Running scheme
> > ajp handler (attempt 0)
> > [Tue Jun 14 11:59:24 2011] [debug] mod_proxy_ajp.c(644): proxy: AJP:
> > serving URL ajp://localhost:8009/myapp/resources/js/global.js
> > [Tue Jun 14 11:59:24 2011] [debug] proxy_util.c(1999): proxy: AJP:
> > has acquired connection for (localhost)
> > [Tue Jun 14 11:59:24 2011] [debug] proxy_util.c(2055): proxy:
> > connecting ajp://localhost:8009/myapp/resources/js/global.js to
> > localhost:8009
> > [Tue Jun 14 11:59:24 2011] [debug] proxy_util.c(2153): proxy:
> > connected /myapp/resources/js/global.js to localhost:8009
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(224): Into
> > ajp_marshal_into_msgb
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[0] [Host] = [host]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[1] [Connection] = [keep-alive]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[2] [Cache-Control] = [no-cache]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[3] [Pragma] = [no-cache]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[4] [User-Agent] = [Mozilla/5.0 (X11;
> > Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko)
> > Chrome/11.0.696.65 Safa
> > ri/534.24]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[5] [Accept] =
> > [application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[6] [Accept-Encoding] =
> > [gzip,deflate,sdch]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[7] [Accept-Language] =
> > [en-US,en;q=0.8]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[8] [Accept-Charset] =
> > [ISO-8859-1,utf-8;q=0.7,*;q=0.3]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[9] [If-None-Match] =
> > [W/"15007-1308038212000"]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290):
> > ajp_marshal_into_msgb: Header[10] [If-Modified-Since] = [Tue, 14 Jun
> > 2011 07:56:52 GMT]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(450):
> > ajp_marshal_into_msgb: Done
> > [Tue Jun 14 11:59:24 2011] [debug] mod_proxy_ajp.c(265): proxy:
> > APR_BUCKET_IS_EOS
> > [Tue Jun 14 11:59:24 2011] [debug] mod_proxy_ajp.c(270): proxy: data
> > to read (max 8186 at 4)
> > [Tue Jun 14 11:59:24 2011] [debug] mod_proxy_ajp.c(285): proxy: got 0
> > bytes of data
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(687):
> > ajp_read_header: ajp_ilink_received 04
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(697): ajp_parse_type:
> > got 04
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(516):
> > ajp_unmarshal_response: status = 304
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(537):
> > ajp_unmarshal_response: Number of headers is = 2
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(599):
> > ajp_unmarshal_response: Header[0] [ETag] = [W/"15007-1308038212000"]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(599):
> > ajp_unmarshal_response: Header[1] [Content-Length] = [0]
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(687):
> > ajp_read_header: ajp_ilink_received 05
> > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(697): ajp_parse_type:
> > got 05
> > [Tue Jun 14 11:59:24 2011] [debug] mod_cache.c(663): cache: Caching
> > url: /resources/js/global.js
> > [Tue Jun 14 11:59:24 2011] [debug] mod_cache.c(669): cache: Removing
> > CACHE_REMOVE_URL filter.
> > [Tue Jun 14 11:59:24 2011] [debug] mod_disk_cache.c(977): disk_cache:
> > Stored headers for URL http://host:80/resources/js/global.js?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See  for more info.
> > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> >
> >
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@xxxxxxxxxxxxxx
> URL: http://brainsware.org/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See  for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 		 	   		  
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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]

  Powered by Linux