How to disable leverage browser caching with .htaccess guideline

You are here:
Estimated reading time: < 1 min

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 article helpful?
Dislike 0

Author

Joshua

Web Hosting Geek Technical Support Staff G Online Sites