compressing your website pages on the web server is a fantastic method to enhance your website speed total. One site I handle was six times smaller after I enabled gzip compression.
1. First, ensure that your website isn’t really currently being pressed by your hosting company. Some holding service providers immediately presses HTML records for their clients. To verify, use a device like GIDZipTest to examine your site. If it returns with “Yes” then you’re done.
Possibilities are that your web pages are not pressed. And in order to compress them you should have the following:.
2. Know just what server you are running (IIS or Apache or something else).
3. Accessibility to your internet server configuration.
Edit your .htaccess file and add the following lines:
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
# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0 no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
After you’ve saved the .htaccess file, test your site again in GIDZipTest. It should come up as compressed.
“How you can Compress site with Gzip Compression”