Where can I find a list of textual MIME types?

I want to make a list of MIME Types which can be compressed by gzip. The first obvious ones to includes are those which begin with "text/". Beyond that I can only add the ones off the top of my head which I know are textual, like "application/json".

Is there a list, canonical or otherwise, that I can refer to?


IANA manages the official list of Media Types

But to know which ones are textual, you'd need to consult RFCs in which they were proposed.

Here is Perl's list. Seems too small...


Maybe better is to make a list of types to not try to compress with gzip. Those would be the types that you know are already compressed. In particular, image, video, and audio types.

It is better to be inclusive than exclusive, since compressing something already compressed only impacts CPU time on the server, and has a vanishingly small effect on bandwidth. On the other hand not compressing something that can be compressed could have a big effect on bandwidth and therefore user experience. Many types could be added that aren't on your list. You'll totally miss the benefit of compressing those with a whitelist. Better to compress what you don't know about, and only not compress what you know for sure is already compressed.

Need Your Help

Minimizing visibility in Java

java refactoring

Does anyone know of an automated approach to refactoring code to minimize the visibility of classes, and their properties and methods? I'm trying to clean up an old API that has way too many public

Javascript audio with playlist

javascript ruby-on-rails html5-audio

Sup, I'm using audio.js plugin in my Rails app. I know, that API of audio.js allows to make playlists, but I didn't find any documentation of it. So, how can I implement playlist with audio.js or any

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.