views:

35

answers:

3

Why do visitors to my site sometimes get a download to a file instead of the page to which they were supposed to go?

What problem does that point to - browser, controller, or something?

+2  A: 

Could possibly be that your HTTP server isn't providing the correct MIME type?

Grumdrig
Nice, four seconds faster than me. :P
Kev
I guess that's what you get for providing a little extra explanation...
Grumdrig
A: 

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.

Kev
A: 

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.

Yishai