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?
Asked
Active
Viewed 289 times
2 Answers
0
Sure. If you don't set any filters the server will compress everything if the client supports the compression.
If you use the line from the documentation:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
That would just compress text files with that content types.

rekire
- 47,260
- 30
- 167
- 264
-
I'm wondering if I should only allow compression for html, css, js files. I'm guessing compressing images and flash files doesn't give me much benefit. – dev.e.loper Dec 19 '12 at 21:45
-
You can compress any data where you expect that it make sense. – rekire Dec 19 '12 at 21:47
0
"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

dev.e.loper
- 35,446
- 76
- 161
- 247