Disable Website Cache

Skip to main content
Du bist hier:
Drucken

Disable Website Cache

If your web application does not offer cache settings in the settings, you can deactivate the cache for your web page with a .htaccess file. To do so, create a .htaccess file in the root folder of your website via FTP or the FileManager or add the following value to the existing .htaccess file to deactivate the cache permanently and to inform all browsers about it:

[code lang=”php”]
# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
[/code]

Related Post