Use content type instead of file extension to detect minifiable content.

Allows minification of arbitrarily proxied resources.
Prevent side-effects of content type testing.