Visitors to site get a file download instead of web page?
Why do visitors to my site sometimes get a download to a file inste开发者_如何学编程ad of the page to which they were supposed to go?
What problem does that point to - browser, controller, or something?
Could possibly be that your HTTP server isn't providing the correct MIME type?
This usually means your web server is serving the page up as the wrong MIME type. You need to tell it which files should be served using which MIME types. Apache includes a standard file for this, but I'm not sure which web server or platform you're using.
Either you have an invalid mime type configured when serving the page, so the browser thinks the content type is something it has to download because it can't display it, or if the problem happens only to some users, then the mime type you are choosing is something that those specific users don't have their browsers configured to support.
精彩评论