Last active
April 22, 2016 13:58
-
-
Save ricksportel/fcfb7b343f9e9e29916d8d4f43ff8569 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
Header unset ETag | |
FileETag None | |
##Expire headers | |
<IfModule mod_expires.c> | |
# Enable expirations | |
ExpiresActive On | |
# Your document html | |
ExpiresByType text/html "access plus 12 hours" | |
# Default directive | |
ExpiresDefault "access plus 1 month" | |
# My favicon | |
ExpiresByType image/x-icon "access plus 1 year" | |
# Media: images, video, audio | |
ExpiresByType audio/ogg "access plus 1 year" | |
ExpiresByType image/gif "access plus 1 year" | |
ExpiresByType image/jpeg "access plus 1 year" | |
ExpiresByType image/png "access plus 1 year" | |
ExpiresByType video/mp4 "access plus 1 year" | |
ExpiresByType video/ogg "access plus 1 year" | |
ExpiresByType video/webm "access plus 1 year" | |
# CSS | |
ExpiresByType text/css "access 1 year" | |
# Javascript | |
ExpiresByType application/javascript "access plus 1 year" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code snippet is used at:
https://wphostingblog.nl/
Article(s):
https://wphostingblog.nl/wordpress-website-sneller-maken/