header no caching

This commit is contained in:
Thijs Stobbelaar 2023-10-02 12:14:52 +02:00
parent 614d91cd12
commit 31e1d91cff

View file

@ -5,4 +5,10 @@ RewriteCond %{REQUEST_FILENAME} !-d
# Check if appending .php points to an existing file # Check if appending .php points to an existing file
RewriteCond %{REQUEST_FILENAME}\.php -f RewriteCond %{REQUEST_FILENAME}\.php -f
# Rewrite the neat URL to its .php counterpart # Rewrite the neat URL to its .php counterpart
RewriteRule ^(.*)$ $1.php [L] RewriteRule ^(.*)$ $1.php [L]
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
</IfModule>