Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Are the files compressed with Gzip always smaller than others not compressed?

Recently, I enable the Gzip compression module for resources access on a server manually. Most files have gotten smaller as expected, but there is a file format that is not smaller but larger – .woff font. When I enable the Gzip module, a .woff file size with 3.2 KB. Conversely, it is only 2.1KB normally. Why do this happen?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You cannot compress every kind of data.

Compression usually adds some overhead. But it also removes redundancy. So if you have a file that doesn’t have enough redundancy, the achieved compression cannot make up for the overhead introduced by the compression format.

WOFF is a compressed file type. So redundancy has already been removed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading