Why do I get "Enable Gzip Compression" error with GTMetrix?

If you're using Autoptimize with the option to have the images optimized by ShortPixel you may notice this error when testing your website with GTMetrix:

The cause for this is that Autoptimize uses a technique called "low quality placeholder" which will display a blurred version of the original image before loading the actual image. For example:
https://cdn.shortpixel.ai/client/w_600,h_301,q_lqip,ret_wait/https://freshome.com/wp-content/uploads/2019/05/pottery-barn.jpg

These images are SVG files (basically plain text) that are very small, usually under 1KB. While ideally these file would be served by the server in its compressed version, there is a technical limitation that prevents ShortPixel from doing this: a compressed version of this image cannot have the ETag HTTP header served. So we chose to have the files served with their ETag header instead of sending the compressed version of these files which are anyway very small.

Our suggestion is to ignore this message from GTmetrix as these SVG images are already around 1K and compressing them would only save a few bytes each.

As an alternative, you could just deactivate this option in Autoptimize and the GTmetrix warning should disappear:



Still need help? Contact Us Contact Us