Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 67715 invoked from network); 23 Jul 2007 14:12:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2007 14:12:05 -0000 Received: (qmail 61755 invoked by uid 500); 23 Jul 2007 14:11:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 61740 invoked by uid 500); 23 Jul 2007 14:11:55 -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 61680 invoked by uid 99); 23 Jul 2007 14:11:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2007 07:11:54 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_ILLEGAL_IP,RCVD_IN_WHOIS_BOGONS,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.163.42.137] (HELO televes.com) (212.163.42.137) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 23 Jul 2007 07:11:51 -0700 Received: from tvesnt.televes.com [1.1.1.131] by televes.com with ESMTP (SMTPD32-4.07) id A7CC11AC0154; Mon, 23 Jul 2007 16:14:36 +03d0 Received: from [1.1.3.46] (tr345.televes.com [1.1.3.46]) by tvesnt.televes.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PJBYL5NM; Mon, 23 Jul 2007 16:06:22 +0200 Message-ID: <46A4B70E.9050900@televes.es> Date: Mon, 23 Jul 2007 16:11:26 +0200 From: Bello Martinez Sergio User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: users@httpd.apache.org References: <46A0A74C.50200@televes.es> <46A469FB.7000707@televes.es> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Want to avoid 304 error Thanks again, Joshua. You are right, it's my application that set 'must-revalidate' header. But it's not the problem, I've deleted it and all works exactly the same. I suspect the 304 return code is the reason because Firefox set '1970-01-01 01:00:00 (already expired)" expiry date, and not that header. I've found a "half-solution". If I use a 'Header append Cache-Control "max-age=something"' , Apache inserts this header in response, even if return code is 304 (until now I've used only 'ExpiresByType' to set cache-related headers). In this case, if Internet Explorer 6.0 receives max-age header, it updates correctly cache-entry expiry time, but Firefox still updates it to '1970-01-01 01:00:00 '. I'll search a litte more.... Thanks, Sergio Joshua Slive escribi�: > On 7/23/07, Bello Martinez Sergio wrote: >> Thank you for your respose. >> I've checked that browsers don�t work as you say they're supposed to >> work. When Apache aswers with a 304 response, the only cache-related >> header it includes by default into the response is 'Cache-Control: >> must-revalidate'. >> Internet Explorer 6.0 does nothing with it, after receiving this >> response, cache remains the same (entity expiry dates remains the same) >> so each time browser needs those elements, it sends a new http request >> an it receives a new 304 response. In the case of Firefox 2.0, the cache >> is updated, but not in the way I'd like: instead of this, entity's >> expiry date are updated to '1970-01-01 01:00:00', so the result is the >> same, each time the browser needs one of these elements, we have a >> request-304 response (with a worse performance) > > must-revalidate is certainly not something that apache returns by > default or with the default handler. In fact, no cache-control > parameters are set by default. So I think you need to examine your > application. > > Although must-revalidate should technically not effect the caching > decision of the client in most cases, it is a widely abused parameter > and it wouldn't surprise me at all if clients treat this as marking > the response as instantly stale. I would therefore guess that your > problem would be eliminated if you dropped this parameter. > > Joshua. > > --------------------------------------------------------------------- > 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 --------------------------------------------------------------------- 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