Commit 064efea43133bd5c551e89ae12465a47c14bd1ef
1 parent
fb9572e7
cache controll header
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
.htaccess
| ... | ... | @@ -79,4 +79,12 @@ AddDefaultCharset utf-8 |
| 79 | 79 | ExpiresByType text/css "access 2 days" |
| 80 | 80 | # Set the default expiry times. |
| 81 | 81 | ExpiresDefault "access plus 2 days" |
| 82 | -</IfModule> | |
| 83 | 82 | \ No newline at end of file |
| 83 | +</IfModule> | |
| 84 | + | |
| 85 | +<ifModule mod_headers.c> | |
| 86 | + | |
| 87 | + <filesMatch "\.(css|js)(\?v=\d+)?$"> | |
| 88 | + Header set Cache-Control "max-age=172800, public" | |
| 89 | + </filesMatch> | |
| 90 | + | |
| 91 | +</ifModule> | |
| 84 | 92 | \ No newline at end of file | ... | ... |