-
Notifications
You must be signed in to change notification settings - Fork 1
/
1.htaccess
28 lines (26 loc) · 1.09 KB
/
1.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
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# Or, compress certain file types by extension:
<files *.html>
SetOutputFilter DEFLATE
</files>
#ExpiresActive on
# ExpiresByType image/jpg "access 1 year"
# ExpiresByType image/jpeg "access 1 year"
# ExpiresByType image/gif "access 1 year"
# ExpiresByType image/png "access 1 year"
# ExpiresByType image/svg+xml "access 1 year"
# ExpiresByType text/html "access 1 month"
# ExpiresByType application/pdf "access 1 month"
# ExpiresByType text/x-javascript "access 1 year"
# ExpiresByType text/css "access 1 month"
# ExpiresByType image/x-icon "access 1 year"
# ExpiresDefault "access 1 year"