-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
32 lines (28 loc) · 1.26 KB
/
.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
30
31
32
<filesMatch "\.(ico|jpg|jpeg|png|js|css|eot|woff|svg|ttf)$">
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"
</ifModule>
</filesMatch>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 60 seconds"
# images - 2 weeks
ExpiresByType image/x-icon "access plus 1210000 seconds"
ExpiresByType image/jpeg "access plus 1210000 seconds"
ExpiresByType image/png "access plus 1210000 seconds"
# 2 weeks
ExpiresByType text/css "access plus 1210000 seconds"
ExpiresByType text/javascript "access plus 1210000 seconds"
ExpiresByType application/javascript "access plus 1210000 seconds"
ExpiresByType application/x-javascript "access plus 1210000 seconds"
ExpiresByType text/html "access plus 600 seconds"
# font - 1 month
ExpiresByType application/x-font-woff "access plus 2628000 seconds"
ExpiresByType application/vnd.ms-fontobject "access plus 2628000 seconds"
ExpiresByType image/svg+xml "access plus 2628000 seconds"
ExpiresByType application/x-font-ttf "access plus 2628000 seconds"
ExpiresByType application/x-font-opentype "access plus 2628000 seconds"
</ifModule>