Enable Compression Using GZip


For viewing all tips see here


Applicable To
All Browsers

How Improves Page Load Time
By optimizing network latency (HTTP Payload Size)

Prologue
[Detail of the technology / concept being used in the tip if required]

Why
o        Compression can reduce the number of bytes sent over the network
o        Dramatic reduction in download time


How
o        Web server can compress files in gzip format before sending them for download either by calling a third party module or using built-in routines
o        Configure web server to set the Content-Encoding header to gzip format for all compressible resources
o        Ensure consistency in HTML and CSS code to make the compression most effective


Exceptions
o        Compression is beneficial only for large resources due to the overhead and latency of compression and decompression.
o        Compressing files below 150 bytes can actually make them larger
o        Don’t use compression for image or other binary files as they are already compressed and applying compression on them will make them larger


Recommendations
o        Minify JavaScript and CSS before compression
o        Files should be compressed only for a certain size threshold; the recommended value is above 150 and 1000 bytes.

Comments

Popular posts from this blog

Performance Test Run Report Template

Understanding Blockchain

Bugs Management in Agile Project