forked from mcurry/asset
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 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,21 @@ | ||
<IfModule mod_deflate.c> | ||
# compress content with type html, text, and css | ||
AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript text/js | ||
<IfModule mod_headers.c> | ||
# properly handle requests coming from behind proxies | ||
Header append Vary User-Agent | ||
</IfModule> | ||
</IfModule> | ||
|
||
<IfModule mod_expires.c> | ||
ExpiresActive On | ||
ExpiresByType text/css "access plus 10 years" | ||
ExpiresByType text/js "access plus 10 years" | ||
ExpiresByType text/javascript "access plus 10 years" | ||
ExpiresByType application/x-javascript "access plus 10 years" | ||
ExpiresByType image/png "access plus 10 years" | ||
ExpiresByType image/gif "access plus 10 years" | ||
ExpiresByType image/jpeg "access plus 10 years" | ||
</IfModule> | ||
|
||
FileETag none |