Skip to content

Commit

Permalink
Merge pull request #152 from noesya/default-htaccess
Browse files Browse the repository at this point in the history
Default cache policies for Apache
  • Loading branch information
arnaudlevy authored Sep 28, 2023
2 parents 68784dd + f5e1b4d commit 13eb354
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions static/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<IfModule mod_expires.c>
ExpiresActive On

AddType application/font-woff .woff
AddType application/font-woff2 .woff2

ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/svg "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/js "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"

ExpiresByType font/woff "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType application/x-font-woff2 "access plus 1 year"
</IfModule>

0 comments on commit 13eb354

Please sign in to comment.