Created
February 9, 2015 16:13
-
-
Save mateusneves/bbb658e2a11968a337e7 to your computer and use it in GitHub Desktop.
Config for file expires
This file contains hidden or 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
# Expires | |
<IfModule mod_expires.c> | |
# Enable expirations | |
ExpiresActive On | |
# Default directive | |
#ExpiresDefault "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType image/jpg "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
# CSS | |
ExpiresByType text/css "access 1 day" | |
# Javascript | |
ExpiresByType application/javascript "access plus 1 day" | |
</IfModule> | |
# END Expires |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment