I have an email with a link to a web page on my server. The pages link issues a Http Refresh header to redirect to a PDF in the cloud. This redirect works with every other browser and/or web mail client configuration.
When debugging, I discovered that if my link points to localhost, IE allows the redirect. But, If I use localhost.site.com IE9 does not allow it. (Again, only in Gmail)
Fiddler between the test does not show any discernible difference. For what it’s worth, I’m using MVC3 and IIS 7.0. There are no javascript errors. If I disable javascript and click the link from Gmail’s non-js client, the link redirects properly.
I only encounter this problem when redirecting to PDFs.
This looks like it could be an issue with the PDF plugin (I am assuming that you are using Adobe) that IE uses to render the PDF in the browser. You can try disabling the plugin and seeing if this problem still occurs.
To disable the plugin, Open Adobe and go to Edit –> Preferences –> Internet and uncheck the option “Display PDF in browser”. Try it with the plugin disabled and see if you will be able to download the file.