Mobile app version of vmapp.org
Login or Join
Kimberly868

: Which MIME type to compress? and what If I omit the `type` attribute from the HTML? Per my request, my webhost had turned mod_deflate ON. In my Cpanel I now have an "Optimize Website" button.

@Kimberly868

Posted in: #Cpanel #Google #Gzip #Html #Seo

Per my request, my webhost had turned mod_deflate ON.

In my Cpanel I now have an "Optimize Website" button.

Inside that menu I could either choose:

"Compress all content" or "Compress the specified MIME types" with the following default MIME types: "text/html text/plain text/xml"


Which option should I choose and why?
If I choose option 2, which types should I add (is there a recommended list with the exact way they should be written)?
According to Google recommendations, I have omitted the type="text/css" attributes from all CSS references, as well as the type="text/javascript" attributes from all script references. Would this hinder the "gzipping" process?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly868

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cooney921

Which option should I choose and why?


I would probably choose the second option, but add to that list text/css and text/javascript.

Basically you want to compress any text-based content, but not content like images, as these are already compressed.


I have omitted the type="text/css" attributes from all CSS references, as well as the type="text/javascript" attributes from all script references. Would this hinder the "gzipping" process?


That looks like Google's internal style guide, it's not meant for your website. However I wouldn't expect any issues from omitting mime types in that way. They're not required in HTML5.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme