Created
August 14, 2017 00:37
-
-
Save faloude/64300b13b7820c18b3b1986ef70b2a5c to your computer and use it in GitHub Desktop.
.htaccess cache expiry
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
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType text/html "access plus 5 minutes" | |
ExpiresByType image/gif "access plus 7 day" | |
ExpiresByType image/png "access plus 7 day" | |
ExpiresByType image/jpg "access plus 7 day" | |
ExpiresByType image/jpeg "access plus 7 day" | |
ExpiresByType image/ico "access plus 7 day" | |
ExpiresByType text/css "access plus 7 day" | |
ExpiresByType text/javascript "access plus 7 day" | |
ExpiresByType application/x-javascript "access plus 7 day" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment