Created
July 15, 2014 02:16
-
-
Save natemcmaster/8e47a3e64cbab4bd3bfc to your computer and use it in GitHub Desktop.
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
AddType image/x-icon .ico | |
<IfModule mod_headers.c> | |
# cache for a year | |
<FilesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf)$"> | |
Header set Cache-Control "max-age=29030400" | |
</FilesMatch> | |
# WEEK | |
<FilesMatch ".(js|css|swf)$"> | |
Header set Cache-Control "max-age=604800" | |
</FilesMatch> | |
# 24 HOURS | |
<FilesMatch ".(html|htm|txt|php)$"> | |
Header set Cache-Control "max-age=86400" | |
</FilesMatch> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment