|
61 | 61 | SecFilterScanPOST Off
|
62 | 62 | </IfModule>
|
63 | 63 |
|
64 |
| -############################################ |
65 |
| -## setting MIME types |
66 |
| - |
67 |
| -# JavaScript |
68 |
| -AddType application/javascript js jsonp |
69 |
| -AddType application/json json |
70 |
| - |
71 |
| -# CSS |
72 |
| -AddType text/css css |
73 |
| - |
74 |
| -# Images and icons |
75 |
| -AddType image/x-icon ico |
76 |
| -AddType image/gif gif |
77 |
| -AddType image/png png |
78 |
| -AddType image/jpeg jpg |
79 |
| -AddType image/jpeg jpeg |
80 |
| - |
81 |
| -# SVG |
82 |
| -AddType image/svg+xml svg |
83 |
| - |
84 |
| -# Fonts |
85 |
| -AddType application/vnd.ms-fontobject eot |
86 |
| -AddType application/x-font-ttf ttf |
87 |
| -AddType application/x-font-otf otf |
88 |
| -AddType application/x-font-woff woff |
89 |
| -AddType application/font-woff2 woff2 |
90 |
| - |
91 |
| -# Flash |
92 |
| -AddType application/x-shockwave-flash swf |
93 |
| - |
94 |
| -# Archives and exports |
95 |
| -AddType application/zip gzip |
96 |
| -AddType application/x-gzip gz gzip |
97 |
| -AddType application/x-bzip2 bz2 |
98 |
| -AddType text/csv csv |
99 |
| -AddType application/xml xml |
100 |
| - |
101 | 64 | <IfModule mod_headers.c>
|
102 | 65 | ############################################
|
103 | 66 | ## prevent clickjacking
|
104 | 67 |
|
105 | 68 | Header set X-Frame-Options SAMEORIGIN
|
106 |
| - |
107 |
| - <FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|htm)$> |
108 |
| - Header append Cache-Control public |
109 |
| - </FilesMatch> |
110 |
| - |
111 |
| - <FilesMatch .*\.(zip|gz|gzip|bz2|csv|xml)$> |
112 |
| - Header append Cache-Control no-store |
113 |
| - </FilesMatch> |
114 |
| - |
115 | 69 | </IfModule>
|
116 | 70 |
|
117 | 71 | <IfModule mod_deflate.c>
|
@@ -212,45 +166,7 @@ AddType application/xml xml
|
212 | 166 | ## Add default Expires header
|
213 | 167 | ## http://developer.yahoo.com/performance/rules.html#expires
|
214 | 168 |
|
215 |
| - ExpiresActive On |
216 |
| - |
217 |
| - # Data |
218 |
| - <FilesMatch \.(zip|gz|gzip|bz2|csv|xml)$> |
219 |
| - ExpiresDefault "access plus 0 seconds" |
220 |
| - </FilesMatch> |
221 |
| - ExpiresByType text/xml "access plus 0 seconds" |
222 |
| - ExpiresByType text/csv "access plus 0 seconds" |
223 |
| - ExpiresByType application/json "access plus 0 seconds" |
224 |
| - ExpiresByType application/zip "access plus 0 seconds" |
225 |
| - ExpiresByType application/x-gzip "access plus 0 seconds" |
226 |
| - ExpiresByType application/x-bzip2 "access plus 0 seconds" |
227 |
| - |
228 |
| - # CSS, JavaScript |
229 |
| - <FilesMatch \.(css|js)$> |
230 |
| - ExpiresDefault "access plus 1 year" |
231 |
| - </FilesMatch> |
232 |
| - ExpiresByType text/css "access plus 1 year" |
233 |
| - ExpiresByType application/javascript "access plus 1 year" |
234 |
| - |
235 |
| - # Favicon, images, flash |
236 |
| - <FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg)$> |
237 |
| - ExpiresDefault "access plus 1 year" |
238 |
| - </FilesMatch> |
239 |
| - ExpiresByType image/gif "access plus 1 year" |
240 |
| - ExpiresByType image/png "access plus 1 year" |
241 |
| - ExpiresByType image/jpg "access plus 1 year" |
242 |
| - ExpiresByType image/jpeg "access plus 1 year" |
243 |
| - ExpiresByType image/svg+xml "access plus 1 year" |
244 |
| - |
245 |
| - # Fonts |
246 |
| - <FilesMatch \.(eot|ttf|otf|svg|woff|woff2)$> |
247 |
| - ExpiresDefault "access plus 1 year" |
248 |
| - </FilesMatch> |
249 |
| - ExpiresByType application/vnd.ms-fontobject "access plus 1 year" |
250 |
| - ExpiresByType application/x-font-ttf "access plus 1 year" |
251 |
| - ExpiresByType application/x-font-otf "access plus 1 year" |
252 |
| - ExpiresByType application/x-font-woff "access plus 1 year" |
253 |
| - ExpiresByType application/font-woff2 "access plus 1 year" |
| 169 | + ExpiresDefault "access plus 1 year" |
254 | 170 |
|
255 | 171 | </IfModule>
|
256 | 172 |
|
|
0 commit comments