-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
29 lines (27 loc) · 935 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# RewriteEngine On
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^([^\.]+)$ views/$1.html [NC,L]
# RewriteRule ^([^\.]+)$ $1.php [NC,L]
# 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>
<IfModule mod_headers.c>
<FilesMatch "\.(ttf)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
<FilesMatch "\.(svg)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
<FilesMatch "\.(css)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
<FilesMatch "\.(js)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
<FilesMatch "index\.(html)$">
Header set Cache-Control "no-store"
</FilesMatch>
</IfModule>