E-mail:vova@vbeg.ru
Skype:vova-beglecov

Disable browser caching in .htaccess

To disable browser caching on the Apache server in the file «.htaccess» you need to add the bottom code. This code disables the caching of files html, htm, js, css, php. Don't forget to check that is enabled on the server module «mod_headers», otherwise shutdown caching won't work.

<filesMatch "\.(html|htm|js|css|php)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>