-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from noesya/default-htaccess
Default cache policies for Apache
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |