|
@@ -1,9 +1,9 @@
|
1
|
1
|
RewriteEngine On
|
2
|
|
- # If an existing asset or directory is requested go to it as it is
|
3
|
|
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
4
|
|
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
5
|
|
- RewriteRule ^ - [L]
|
6
|
|
- # If the requested resource doesn't exist, use index.html
|
|
2
|
+# If an existing asset or directory is requested go to it as it is
|
|
3
|
+RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
|
4
|
+RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
|
5
|
+RewriteRule ^ - [L]
|
|
6
|
+# If the requested resource doesn't exist, use index.html
|
7
|
7
|
RewriteRule ^ /index.html
|
8
|
8
|
|
9
|
9
|
<IfModule mod_expires.c>
|
|
@@ -22,19 +22,22 @@ RewriteRule ^ /index.html
|
22
|
22
|
ExpiresByType video/mpeg "access plus 1 year"
|
23
|
23
|
|
24
|
24
|
# CSS, JavaScript
|
25
|
|
- ExpiresByType text/css "access plus 1 month"
|
26
|
|
- ExpiresByType text/javascript "access plus 1 month"
|
27
|
|
- ExpiresByType application/javascript "access plus 1 month"
|
|
25
|
+ # ExpiresByType text/css "access plus 1 month"
|
|
26
|
+ # ExpiresByType text/javascript "access plus 1 month"
|
|
27
|
+ # ExpiresByType application/javascript "access plus 1 month"
|
28
|
28
|
</IfModule>
|
29
|
29
|
|
30
|
30
|
<IfModule mod_headers.c>
|
31
|
31
|
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
|
32
|
32
|
Header set Access-Control-Allow-Origin "*"
|
33
|
33
|
</FilesMatch>
|
34
|
|
- <FilesMatch "\.(ico|pdf|flv|swf|gif|png|jpg|jpeg|txt|html|htm)$">
|
35
|
|
- Header set Cache-Control "max-age=2592000, public"
|
|
34
|
+ <FilesMatch "\.(ico|pdf|flv|swf|gif|png|jpg|jpeg|txt)$">
|
|
35
|
+ Header set Cache-Control "max-age=31536000, public"
|
36
|
36
|
</FilesMatch>
|
37
|
37
|
<FilesMatch "\.(css|js)$">
|
|
38
|
+ Header set Cache-Control "max-age=604800, public"
|
|
39
|
+ </FilesMatch>
|
|
40
|
+ <FilesMatch "\.(html|htm)$">
|
38
|
41
|
FileETag None
|
39
|
42
|
Header unset ETag
|
40
|
43
|
Header unset Pragma
|