Commit 35c0e30c9a1c10f6b047fe179bb1f3fc81956967

Authored by Eugeny Galkovskiy
2 parents 0494569b 2138dbc4

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 67 <IfModule mod_expires.c>
68 68 # Turn on the module.
69 69 ExpiresActive on
70   - # Set the default expiry times.
71   - ExpiresDefault "access plus 2 days"
  70 +
72 71 ExpiresByType image/jpg "access plus 1 month"
73 72 ExpiresByType image/gif "access plus 1 month"
74 73 ExpiresByType image/jpeg "access plus 1 month"
... ... @@ -76,4 +75,16 @@ AddDefaultCharset utf-8
76 75 ExpiresByType image/ico "access plus 1 month"
77 76 ExpiresByType image/x-icon "access plus 1 month"
78 77 ExpiresByType text/html "access plus 600 seconds"
79   -</IfModule>
80 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 92 \ No newline at end of file
... ...