httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "howard chen" <howac...@gmail.com>
Subject Re: [users@httpd] Force IE to cache
Date Fri, 03 Oct 2008 03:10:25 GMT
Hello,

Thanks for you valuable comments...


On Fri, Oct 3, 2008 at 4:24 AM, André Warnier <aw@ice-sa.com> wrote:
> I have not verified, but maybe you are interpreting the rules of caching
> a bit more extensively than what the HTTP RFCs really say.
> It may be that, by using your various HTTP headers, your server is doing
> what it can to "suggest" to the browser that it should cache this object and
> not ask again for 10 years.  But maybe also, the RFC says that the client is
> not "forced" to respect this, and "can" ask again if the content has been
> replaced in the meantime or not.
> After all, you are seeing 304 responses from the server.  This means that
> the browser has requested an object, but told the server "only if not
> modified since..", and the 304 of the server is "No, it has not been
> modified since then, you do not need to reload it". And consequently the
> browser uses its cached version, and it does not insist. (I suppose, because
> otherwise you would see another request from the browser, and another 200 OK
> response from the server).

[snipped]

I have done an experinment with both IE6 & IE7, using MS default image:
http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en


In my experinment, I have set the files to expire in 10 years later,
so, on the first request, the file
would be downloaded and cached for 10 years. (I confirm this as I can
see the expire date being set correctly in
~\Local Settings\Temporary Internet Files\...)

Then, in the repeated request, IE6/IE7 would not contact the web
server for any kind of validation
, e.g. If-modified-since, it will use the cache directly, so there
should not be any 304 in my server log.

Since I have check with both IE6 and IE7 and can confirm this, unless
user press F5 for reload,
304 will be sent out.

However, I still don't belive 50% of my users will press F5 for normal
usage and end up with 50% of 304, as compare to 200.



Howard

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message