Last active
March 28, 2019 14:37
-
-
Save andrekeher/7e90de42e4f1cb0ea6ac1a59e7258c87 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
<IfModule mod_expires.c> | |
ExpiresActive On | |
# Images | |
ExpiresByType image/x-icon "access plus 1 month" | |
ExpiresByType image/svg+xml "access 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
ExpiresByType image/webp "access plus 1 month" | |
# Video | |
ExpiresByType video/mp4 "access plus 1 month" | |
ExpiresByType video/mpeg "access plus 1 month" | |
# CSS/JS | |
ExpiresByType text/css "access plus 1 week" | |
ExpiresByType application/x-javascript "access plus 1 week" | |
ExpiresByType application/javascript "access plus 1 week" | |
ExpiresByType text/javascript "access plus 1 week" | |
# Fonts | |
ExpiresByType application/vnd.ms-fontobject "access plus 1 year" | |
ExpiresByType application/x-font-ttf "access plus 1 year" | |
ExpiresByType application/x-font-opentype "access plus 1 year" | |
ExpiresByType application/x-font-woff "access plus 1 year" | |
# Others | |
ExpiresByType text/plain "access plus 1 day" | |
ExpiresByType application/pdf "access plus 1 week" | |
ExpiresByType application/x-shockwave-flash "access plus 1 week" | |
ExpiresDefault "access plus 10 days" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment