-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.htaccess
33 lines (30 loc) · 1.14 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
33
DirectoryIndex index.html
Options -Indexes
AddCharset UTF-8 .html
AddCharset UTF-8 .php
<IfModule mod_headers.c>
Header unset ETag
<Files *.html>
Header add Pragma "no-cache"
Header add Cache-Control "no-cache"
Header unset Vary
</Files>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/octet-stream "access plus 2592000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType audio/webm "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/webp "access plus 2592000 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType video/quicktime "access plus 2592000 seconds"
ExpiresByType video/webm "access plus 2592000 seconds"
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</Ifmodule>