function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ollie123ollie123 

Salesforce Sites page delivered as a file to IE, not a page

I have created a page in Sites, it works fine in Chrome, Firefox, but in IE I get a file-download dialog. The page does not render, it appears that the browser is interpreting the HTTP Response as a file, not a page.

I suppose it could be a MIME type issue, but curious why a pretty standard page is doing this.

Any ideas?

 

Best Answer chosen by Admin (Salesforce Developers) 
ollie123ollie123
It was the content type param, the dangers of copy and pasting code snippets from the forums. It was set to XML. I removed the param so it produced the document with its default mime-type and all is now working.

All Answers

RyanGuestRyanGuest

This is odd. What version of IE?

 

Can you post sample code or a link to your site? 

ollie123ollie123
It was the content type param, the dangers of copy and pasting code snippets from the forums. It was set to XML. I removed the param so it produced the document with its default mime-type and all is now working.
This was selected as the best answer