Disable leverage browser caching with .htaccess guideline Print

  • 0

Disable leverage browser caching with .htaccess guideline

 

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>

 

 

 

<IfModule mod_headers.c>

 

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

 

Header set Pragma "no-cache"

 

Header set Expires 0

 

</IfModule>

 


Was this answer helpful?

« Back