Skip to content

Commit

Permalink
[impr-OpenMage#876] Add some mod_expires headers to .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelbalparda authored and edannenberg committed Aug 24, 2020
1 parent 471266f commit 94056b0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,17 @@
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

ExpiresDefault "access plus 1 year"

ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>

############################################
Expand Down

0 comments on commit 94056b0

Please sign in to comment.