Skip to content

Commit

Permalink
Update .htaccess (OpenMage#876)
Browse files Browse the repository at this point in the history
Added mod_expires headers for common file types.
  • Loading branch information
miguelbalparda authored Feb 14, 2020
1 parent 8751dfd commit c168810
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 c168810

Please sign in to comment.