Proper caching and cache avoidance.
This commit is contained in:
parent
945aab3813
commit
145f1549bd
11
.htaccess
11
.htaccess
|
@ -3,4 +3,13 @@
|
|||
#RewriteCond %{REQUEST_FILENAME} !-d
|
||||
#RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
|
||||
# TODO - https://github.com/phanan/htaccess#set-expires-headers
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive on
|
||||
ExpiresDefault "access plus 1 week"
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header unset ETag
|
||||
</IfModule>
|
||||
FileETag None
|
Loading…
Reference in New Issue