Prevent side-effects of content type testing.
Use content type instead of file extension to detect minifiable content.

Allows minification of arbitrarily proxied resources.