Skip to content Skip to sidebar Skip to footer

Force Refresh Of Browser-cache For HTML Document

A website was accidentally cached in the browser for about a month with Expires and max-age headers set. The cached resource is text/html and the root /. The freshness validation s

Solution 1:

Add in the .htaccess or apache config this

ExpiresActive on
ExpiresByType text/html     "access plus 0 seconds"

Taken from h5bp apache config. If you use some other server software, checkout all h5bp server-configs repo for similar code.


Post a Comment for "Force Refresh Of Browser-cache For HTML Document"