CPanel gives me options about what MIME content types to compress with Apache's mod_deflate
, as shown below.
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?
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:
You may have more interesting choices or text files to compress, but for this is a good starting point.