Commit 35c0e30c9a1c10f6b047fe179bb1f3fc81956967
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
14 additions
and
3 deletions
Show diff stats
.htaccess
| @@ -67,8 +67,7 @@ AddDefaultCharset utf-8 | @@ -67,8 +67,7 @@ AddDefaultCharset utf-8 | ||
| 67 | <IfModule mod_expires.c> | 67 | <IfModule mod_expires.c> |
| 68 | # Turn on the module. | 68 | # Turn on the module. |
| 69 | ExpiresActive on | 69 | ExpiresActive on |
| 70 | - # Set the default expiry times. | ||
| 71 | - ExpiresDefault "access plus 2 days" | 70 | + |
| 72 | ExpiresByType image/jpg "access plus 1 month" | 71 | ExpiresByType image/jpg "access plus 1 month" |
| 73 | ExpiresByType image/gif "access plus 1 month" | 72 | ExpiresByType image/gif "access plus 1 month" |
| 74 | ExpiresByType image/jpeg "access plus 1 month" | 73 | ExpiresByType image/jpeg "access plus 1 month" |
| @@ -76,4 +75,16 @@ AddDefaultCharset utf-8 | @@ -76,4 +75,16 @@ AddDefaultCharset utf-8 | ||
| 76 | ExpiresByType image/ico "access plus 1 month" | 75 | ExpiresByType image/ico "access plus 1 month" |
| 77 | ExpiresByType image/x-icon "access plus 1 month" | 76 | ExpiresByType image/x-icon "access plus 1 month" |
| 78 | ExpiresByType text/html "access plus 600 seconds" | 77 | ExpiresByType text/html "access plus 600 seconds" |
| 79 | -</IfModule> | ||
| 80 | \ No newline at end of file | 78 | \ No newline at end of file |
| 79 | + ExpiresByType text/javascript "access 1 week" | ||
| 80 | + ExpiresByType text/css "access 1 week" | ||
| 81 | + # Set the default expiry times. | ||
| 82 | + ExpiresDefault "access plus 1 week" | ||
| 83 | +</IfModule> | ||
| 84 | + | ||
| 85 | +<ifModule mod_headers.c> | ||
| 86 | + | ||
| 87 | + <filesMatch "\.(css|js)(\?v=\d+)?$"> | ||
| 88 | + Header set Cache-Control "max-age=604800, public" | ||
| 89 | + </filesMatch> | ||
| 90 | + | ||
| 91 | +</ifModule> | ||
| 81 | \ No newline at end of file | 92 | \ No newline at end of file |