当前位置: 动力学知识库 > 问答 > 编程问答 >

nginx - How works gzip_types image/jpeg

问题描述:

I now and always use gzip with nginx but never use it for images. Try to find some adventages/disadventages of that kind solution but nothing found.

Of course I can use client side caching in nginx and set expired days for images - but then first load will be always full load without any optimization.

Soo should I or shouldnt gzip images jpeg png etc. ? What this type of commpresion do - change commpression of images to lower quality?

网友答案:

You don't compress images because images are already compressed. In some cases it can actually make them larger (but I've forgotten the reason why). These are binary formats, similar to videos and you won't gain any benefit.

分享给朋友:
您可能感兴趣的文章:
随机阅读: