Subject pretty much says it all. I came across
http://developer.mozilla.org/en/docs...in_Mozilla_FAQ FAQ which states that I should be using .xml and .xls extensions. OK. And serving as text/xml. OK
So I checked it out. Unsurprisingly there was something up. My .xml and .xsl files were being served without a Content-Type at all.
So added this line (using Apache 2):
Code:
AddType text/xml xml xsl xslt
to my apache2.conf but its made no difference. Indeed to get a Content-Type header to be send I have to use PHP!
Code:
header('Content-Type: text/xml');
but then of course i'm not using the correct .xml and .xsl extensions.
Why isn't Content-Type being sent at all in the first place?
Why is my AddType declaration being ignored
Why is ForceType (another thing I tried with an .htaccess) also making absolutely no difference?!
Also this isn't anything to do with content negotiation because my browser is clearly accepting text/xml.