Fix MIME types of proxied content in Apache

In Apache 2.2 at least, if you have downstream (eg proxied from Appserver) content with the wrong MIME type you cannot fix it with ForceType as this only works on local files. What you want to do is something like this:


Header set Content-Type application/javascript

This is particularly important nowadays as content sniffing is bad.

Leave a Reply

Your email address will not be published. Required fields are marked *