Last active
June 7, 2017 20:26
-
-
Save hsquareweb/a6ea25e28f7ce7c3272753f46098f50c to your computer and use it in GitHub Desktop.
.htaccess - WP Performance Score Booster Plugin Settings
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
## BEGIN GZIP Compression ## | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript | |
AddOutputFilterByType DEFLATE application/x-httpd-php | |
AddOutputFilterByType DEFLATE application/x-httpd-fastphp | |
AddOutputFilterByType DEFLATE image/svg+xml | |
SetOutputFilter DEFLATE | |
</IfModule> | |
## END GZIP Compression ## | |
## BEGIN Vary: Accept-Encoding Header ## | |
<IfModule mod_headers.c> | |
<FilesMatch "\.(js|css|xml|gz)$"> | |
Header append Vary: Accept-Encoding | |
</FilesMatch> | |
</IfModule> | |
## END Vary: Accept-Encoding Header ## | |
## BEGIN Leverage Browser Caching (Expires Caching) ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType image/x-icon "access 1 year" | |
ExpiresByType application/pdf "access 1 month" | |
ExpiresByType application/javascript "access 1 month" | |
ExpiresByType text/x-javascript "access 1 month" | |
ExpiresByType application/x-shockwave-flash "access 1 month" | |
ExpiresDefault "access 1 month" | |
</IfModule> | |
## END Leverage Browser Caching (Expires Caching) ## | |
## BEGIN Disable ETag header ## | |
Header unset Pragma | |
Header unset ETag | |
FileETag None | |
## END Disable ETag header ## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment