-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
90 lines (77 loc) · 2.84 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>
AddType font/opentype .otf
AddType font/eot .eot
AddType font/truetype .ttf
AddType font/woff .woff
AddType font/woff2 .woff2
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 240 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType application/json "access plus 1 seconds"
ExpiresByType image/gif "access plus 14 day"
ExpiresByType image/svg+xml "access plus 14 day"
ExpiresByType image/jpeg "access plus 14 day"
ExpiresByType image/png "access plus 14 day"
ExpiresByType text/css "access plus 2 day"
ExpiresByType text/javascript "access plus 2 day"
ExpiresByType application/x-javascript "access plus 2 day"
ExpiresByType application/xml "access plus 2 day"
ExpiresByType application/xhtml+xml "access plus 2 day"
ExpiresByType font/truetype "access plus 20 day"
ExpiresByType font/opentype "access plus 20 day"
ExpiresByType font/eot "access plus 20 day"
ExpiresByType font/woff "access plus 20 day"
ExpiresByType font/woff2 "access plus 20 day"
</ifModule>
<ifModule mod_headers.c>
Header append Cache-Control "public"
</ifModule>
#<ifModule mod_gzip.c>
#mod_gzip_on Yes
#mod_gzip_dechunk Ys
#AddType image/svg+xml svg svgz
#AddEncoding gzip svgz
#mod_gzip_item_include file .(html?|txt|css|js|php|pl|svg|png|woff|woff2)$
#mod_gzip_item_include handler ^cgi-script$
#mod_gzip_item_include mime ^text/.*
#mod_gzip_item_include mime ^application/x-_javascript_.*
#mod_gzip_item_include mime ^image/.*
#mod_gzip_item_include mime ^font/.*
#mod_gzip_item_include mime ^application/.*
#mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
#</ifModule>
#
####################
# GZIP COMPRESSION #
####################
<ifModule mod_deflate.c>
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# compress text, html, _javascript_, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE font/truetype
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/eot
AddOutputFilterByType DEFLATE font/woff2
AddOutputFilterByType DEFLATE application/octet-stream
</ifModule>