1

CPanel gives me options about what MIME content types to compress with Apache's mod_deflate, as shown below.

enter image description here

Are there disadvantages to having a long list of MIME types (eg. slower server response)? In other words, is there any reason I shouldn't find or create a very long list of every imaginable uncompressed filetype?

Obviously, it is best not to compress filetypes that are already compressed, eg. videos, .docx. Are there other considerations for what should be included or not included in this mod_deflate types list?

sondra.kinsey
  • 293
  • 1
  • 2
  • 7

1 Answers1

2

Just compress text files or you will end up wasting cpu cycles for files like images and such which won't be compressed more because they already are.

typical setup is to compress these mime types:

text/html text/plain text/xml text/css text/javascript application/javascript

You may have more interesting choices or text files to compress, but for this is a good starting point.

Daniel Ferradal
  • 2,415
  • 1
  • 8
  • 13