Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUT THE FOLLOWING CODES IN .htaccess code:
- #GZip compression
- <IfModule mod_deflate.c>
- AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- </IfModule>
- ## EXPIRES CACHING ##
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType image/jpg "access plus 1 year"
- ExpiresByType image/jpeg "access plus 1 year"
- ExpiresByType image/gif "access plus 1 year"
- ExpiresByType image/png "access plus 1 year"
- ExpiresByType text/css "access plus 1 month"
- ExpiresByType application/pdf "access plus 1 month"
- ExpiresByType text/x-javascript "access plus 1 month"
- ExpiresByType application/x-shockwave-flash "access plus 1 month"
- ExpiresByType image/x-icon "access plus 1 year"
- ExpiresDefault "access plus 2 days"
- </IfModule>
- ## EXPIRES CACHING ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement