share

GZip Compression

  • https://www.mobileappsdevelopment.in/
  • :
  • MOBILE APPLICATION DEVELOPMENT COMPANY IN INDIA

GZip Compression

Enabling gzip compression, compresses files thus making them smaller for faster transfers which load faster for your website users.

Why Gzip compression Matters?

  • Speed... Your website will be slower than others if not enabled
  • Decreases bandwidth used on your server

How To Fix Gzip Issues

  • For Apache and shared host utilize .htaccess! This is an example you can edit to fit your needs.

    <IfModule mod_deflate.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_include handler ^cgi-script$
    # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>
  • For Nginx:
    gzip on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";
    gzip_vary on;
    gzip_types text/plain text/css text/javascript image/svg+xml image/x-icon application/javascript application/x-javascript;

Overview

  • You

    Gzipped
  • Comps

    Found In: ALL