Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://gtmetrix.com/analyze.html
- https://tools.pingdom.com
- Auto optimize
- GZip Ninja Speed Compressio
- Give the code in the httdoc dile wp font page below
- <IfModule mod_expires.c>
- # Enable expirations
- ExpiresActive On
- # Default directive
- ExpiresDefault "access plus 1 month"
- # My favicon
- ExpiresByType image/x-icon "access plus 1 year"
- # Images
- ExpiresByType image/gif "access plus 1 month"
- ExpiresByType image/png "access plus 1 month"
- ExpiresByType image/jpg "access plus 1 month"
- ExpiresByType image/jpeg "access plus 1 month"
- # CSS
- ExpiresByType text/css "access 1 month"
- # Javascript
- ExpiresByType application/javascript "access plus 1 year"
- </IfModule>
- //Second Part Only Code
- # START GZIP COMPRESSION
- <IfModule mod_deflate.c>
- <IfModule mod_headers.c>
- Header append Vary User-Agent env=!dont-vary
- </IfModule>
- <IfModule mod_filter.c>
- AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
- <IfModule mod_mime.c>
- # DEFLATE by extension
- AddOutputFilter DEFLATE js css htm html xml
- </IfModule>
- </IfModule>
- </IfModule>
- # END GZIP COMPRESSION
- # START Browser Caching
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType text/css “access plus 1 month”
- ExpiresByType text/javascript “access plus 1 month”
- ExpiresByType text/html “access plus 1 month”
- ExpiresByType application/javascript “access plus 1 month”
- ExpiresByType application/x-javascript “access plus 1 month”
- ExpiresByType application/xhtml-xml “access plus 1 month”
- ExpiresByType image/gif “access plus 1 month”
- ExpiresByType image/jpeg “access plus 1 month”
- ExpiresByType image/png “access plus 1 month”
- ExpiresByType image/x-icon “access plus 1 month”
- </IfModule>
- # END Caching
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement