Created
October 15, 2016 03:37
-
-
Save edward-jimenez/6876c40e6c28348bf84eaf7714459d49 to your computer and use it in GitHub Desktop.
Browser caching in WordPress
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 Caching Start # | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType text/css "access 8 days" | |
ExpiresByType text/html "access 8 days" | |
ExpiresByType image/gif "access 8 days" | |
ExpiresByType image/png "access 8 days" | |
ExpiresByType image/jpg "access 8 days" | |
ExpiresByType image/jpeg "access 8 days" | |
ExpiresByType image/x-icon "access 8 days" | |
ExpiresByType application/pdf "access 8 days" | |
ExpiresByType application/javascript "access 8 days" | |
ExpiresByType text/x-javascript "access 8 days" | |
ExpiresByType application/x-shockwave-flash "access 8 days" | |
ExpiresDefault "access 8 days" | |
</IfModule> | |
# Expires Caching End # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment