g1smd - 9:30 pm on Dec 10, 2010 (gmt 0)
The resource returns "text/html" because the resource at the requested location is not a script, it's a redirect to another location.
That other location should return the correct header when, and only when, that other location is requested in a new and separate HTTP transaction.
The 302 redirect is dangerous. I am guessing that it should really be a 301 redirect.