Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DB09659A for ; Tue, 14 Jun 2011 13:04:56 +0000 (UTC) Received: (qmail 9310 invoked by uid 500); 14 Jun 2011 13:04:53 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 9203 invoked by uid 500); 14 Jun 2011 13:04:53 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 9195 invoked by uid 99); 14 Jun 2011 13:04:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 13:04:53 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcin.kwiatkowski@hotmail.com designates 65.55.34.83 as permitted sender) Received: from [65.55.34.83] (HELO col0-omc2-s9.col0.hotmail.com) (65.55.34.83) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 13:04:46 +0000 Received: from COL115-W36 ([65.55.34.71]) by col0-omc2-s9.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 14 Jun 2011 06:04:25 -0700 Message-ID: X-Originating-IP: [95.48.24.49] From: Marcin Kwiatkowski To: Date: Tue, 14 Jun 2011 15:04:25 +0200 Importance: Normal In-Reply-To: <51d5256b-b5be-449e-94a3-cb4596b9f931@iris> References: ,<51d5256b-b5be-449e-94a3-cb4596b9f931@iris> Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 14 Jun 2011 13:04:25.0735 (UTC) FILETIME=[9650F970:01CC2A93] Subject: RE: [users@httpd] mod_cache serves diffrent content for Firefox and Chrome ---------------------------------------- > Date: Tue=2C 14 Jun 2011 12:18:21 +0000 > From: i.galic@brainsware.org > To: users@httpd.apache.org > Subject: Re: [users@httpd] mod_cache serves diffrent content for Firefox = and Chrome > > > > ----- Original Message ----- > > > > Hi! > > > > I'm using following configuration of mod_cache: > > > > CacheEnable disk / > > CacheIgnoreCacheControl On > > > >=20 > > CacheIgnoreNoLastMod On > > CacheDefaultExpire 240 > > =20 > > CacheEnable mem / > > MCacheSize 4096 > > MCacheMaxObjectCount 100 > > MCacheMinObjectSize 1 > > MCacheMaxObjectSize 2048 > > =20 > >=20 > > > > Depending on browser I'm using=2C 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=2C I omitted them since they look almost the same: User-Agent: Mozilla/5.0 (X11=3B Linux x86_64=3B rv:2.0.1) Gecko/20100101 Fi= refox/4.0.1 Accept: text/html=2Capplication/xhtml+xml=2Capplication/xml=3Bq=3D0.9=2C*/*= =3Bq=3D0.8 Accept-Language: chrome://global/locale/intl.properties Accept-Encoding: gzip=2C deflate Accept-Charset: ISO-8859-1=2Cutf-8=3Bq=3D0.7=2C*=3Bq=3D0.7 Keep-Alive: 115 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11=3B Linux x86_64) AppleWebKit/534.24 (KHTML=2C = like Gecko) Chrome/11.0.696.65 Safari/534.24 Accept: application/xml=2Capplication/xhtml+xml=2Ctext/html=3Bq=3D0.9=2Ctex= t/plain=3Bq=3D0.8=2Cimage/png=2C*/*=3Bq=3D0.5 Accept-Language: en-US=2Cen=3Bq=3D0.8 Accept-Encoding: gzip=2Cdeflate=2Csdch Accept-Charset: ISO-8859-1=2Cutf-8=3Bq=3D0.7=2C*=3Bq=3D0.3 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache IE seems to behave exactly like firefox.=20 How's it possible that this code: [debug] cache_storage.c(272): Cached response for /resources/js/global.js i= sn'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=3B > > Linux > > x86_64=3B 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=3B > > Linux x86_64) AppleWebKit/534.24 (KHTML=2C 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=2C 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=2C 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] =3D [host] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[1] [Connection] =3D [keep-alive] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[2] [Cache-Control] =3D [no-cache] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[3] [Pragma] =3D [no-cache] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[4] [User-Agent] =3D [Mozilla/5.0 (X11=3B > > Linux x86_64) AppleWebKit/534.24 (KHTML=2C 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] =3D > > [application/xml=2Capplication/xhtml+xml=2Ctext/html=3Bq=3D0.9=2Ctext/p= lain=3Bq=3D0.8=2Cimage/png=2C*/*=3Bq=3D0.5] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[6] [Accept-Encoding] =3D > > [gzip=2Cdeflate=2Csdch] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[7] [Accept-Language] =3D > > [en-US=2Cen=3Bq=3D0.8] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[8] [Accept-Charset] =3D > > [ISO-8859-1=2Cutf-8=3Bq=3D0.7=2C*=3Bq=3D0.3] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[9] [If-None-Match] =3D > > [W/"15007-1308038212000"] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(290): > > ajp_marshal_into_msgb: Header[10] [If-Modified-Since] =3D [Tue=2C 14 Ju= n > > 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 =3D 304 > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(537): > > ajp_unmarshal_response: Number of headers is =3D 2 > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(599): > > ajp_unmarshal_response: Header[0] [ETag] =3D [W/"15007-1308038212000"] > > [Tue Jun 14 11:59:24 2011] [debug] ajp_header.c(599): > > ajp_unmarshal_response: Header[1] [Content-Length] =3D [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=2C e-mail: users-unsubscribe@httpd.apache.org > > " from the digest: users-digest-unsubscribe@httpd.apache.org > > For additional commands=2C e-mail: users-help@httpd.apache.org > > > > > > -- > Igor Gali=E6 > > Tel: +43 (0) 664 886 22 883 > Mail: i.galic@brainsware.org > URL: http://brainsware.org/ > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project= . > See for more info. > To unsubscribe=2C e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands=2C e-mail: users-help@httpd.apache.org > = --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org