I just searched the Internet, but could not find a good answer to this question:
The Google Page Speed Extension for FF told me to cache files on my website (PHP). So I updated my .htaccess(in my beta area of the website) to cache certain file types:
ExpiresActive On
ExpiresDefault A0
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
When encoding in beta, I noticed that due to cache management settings I need to click F5to get the latest .css file, for example. This is not bad for me ... however, what about users?
Can I tell the browser to reload all the files (only) when I update my site (or the file expires) and use the cache if not?
It would be ideal if I could tell the browser: "Hey, all the files before the update time are out of date, please reload them, however the files after the update time are fine, use the cache."
source
share