开发者

Visitors to site get a file download instead of web page?

开发者 https://www.devze.com 2022-12-09 10:26 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号