Forum Moderators: phranque
AddType application/vnd.ms-excel .xla
That solved it in Firefox. However, IE insists on trying to change the file extension. It has to be .xlA, but IE wants to rename the file so that it has a .xlS format. The .xlS is a regular workbook, while .xlA is an add-in.
Is there anything I can do to stop IE from renaming the file? I'm using 7, but I've seen the same behavior in IE 6 on another site that I run.
One characteristic of IE that Webmasters need to always bear in mind is that MS chose to make IE ignore the Content-Type response header sent by servers. Instead, in an effort to 'dumb things down' and compensate for Webmaster errors in configuring their servers' Content-Type headers to reflect the correct MIME-type, IE analyzes the actual content and takes a best-guess at what kind of file it is. So, this leads to problems when they get it wrong -- or don't properly support even their own formats.
All other browsers (that I know of) properly use the MIME-type indicated in the server Content-Type response header.
Jim
Content-Type text/plain. Firefox continues with the feed option chosen in the preferences instead of displaying the xml file as plain text. I was quite surprised when I trapped into this behavior... M$ offers a "fix" to prevent MIME-sniffing for IE 8 with a response header
X-Content-Type-Options nosniff.