and to tell browser to reload an object (and/or a page... everything on the site) only if is been modified since last visit time??? htaccess, httpd.conf... have you a ready directive right for my case? Thank You very much
and to tell browser to reload an object (and/or a page... everything on the site) only if is been modified since last visit time??? htaccess, httpd.conf... have you a ready directive right for my case? Thank You very much
html5boilerplate.com includes a well commented .htaccess file that has many standard settings you should consider. Among them are reasonable settings for expiring the content (Expires, E-tags, ...).
Here's the documentation on mod_expires.
Note that
Last-Modified
headers are weak cache headers. The current preference is to useCache-Control
headers.Google has a good article on this.
Optimize Caching
I recommend using either
Cache-Control
orExpires
headers as needed since they are strong cache headers. Some systems will ignore Last-Modified dates.You can then use a tool like
curl
or http://redbot.org to check the headers.