Thanks so much for any advices.
Read http://blogs.msdn.com/b/ie/archive/2010/07/14/caching-improvements-in-internet-explorer-9.aspx for background.
For expires
not provided in header of the server response, see §14.21 here:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
Even when provided, expires
is overriden by the max-age
directive, thus if expires
is not provided max-age
is used. If none are provided, then see §13.2.4 here:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.2.4
Basically it says the client can set cache for an undetermined period of time, and not consistently.
To solve your problem, you may say your static elements never expire, and add an expire time to the included elements of a HTML doc. To do that, see here: http://www.tipsandtricks-hq.com/how-to-add-far-future-expires-headers-to-your-wordpress-site-1533
Quoted: "To add expires header to the image, CSS, javascript files add the following to your .htaccess
file
Expire Header
> <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
> ExpiresDefault "access plus 2 hours"
> </FilesMatch>
or Expire images header
> ExpiresActive On
> ExpiresDefault A0
> ExpiresByType image/gif A2592000
[...] Keep in mind that when you use expires header the files are cached in the browser until it expires so do not use this on files that changes frequently. If you change/update a file that has a far future expiry (eg. CSS or javascript files) then you should rename that file and use the renamed version so the browser doesn’t fetch the old file."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With