Disable leverage browser caching with .htaccess guideline Print

  • 1549

If you want to disable leverage browser caching with .htaccess and want people to see updated contents with your static page instantly, try to add the following lines in your .htaccess file:


<IfModule mod_expires.c>

ExpiresActive Off



<IfModule mod_headers.c>

Header set Cache-Control "no-cache, no-store, must-revalidate"

Header set Pragma "no-cache"

Header set Expires 0


Was this answer helpful?

« Back