Search code examples
apachegzipmod-deflate

How does Apache handle images/flash when deflate mode is on


I'm thinking of enabling deflate mode on Apache. I'm curious how does Apache deal with images or flash files when deflate is on? Does it try to compress images and flash files as well?


Solution

  • "Image file formats supported by the web, as well as videos, PDFs and other binary formats, are already compressed; using gzip on them won't provide any additional benefit, and can actually make them larger. To compress images, see Optimize images."

    https://developers.google.com/speed/docs/best-practices/payload#GzipCompression