Content-Disposition: attachment ignored when manually refreshing a page - by Snowknight26

Status : 

 


ID 615775 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 10/21/2010 6:40:46 PM
Access Restriction Public

Description

When 'Content-Disposition: attachment; filename=somefile.ext' is set, manually refreshing the page causes the file to be displayed inline (in the browser instead of via a download prompt).
Sign in to post a comment.
Posted by Snowknight26 on 3/11/2014 at 5:11 AM
The issue still occurs with 11.0.9600.17031.
Posted by Ahmad Saleem on 3/10/2014 at 9:46 AM
I tried to reproduce this using URL provided below, with IE 11.0.9600.16518 on Windows 8.1 Pro x64, I was able to reproduce it successfully but now using IE 11.0.9600.17031 on same OS, I am unable to reproduce this issue.

URL: http://stfcc.org/misc/ie10_headers.php

See image for reference what could happen: http://i.imgur.com/8Ngds4J.png

I highly recommend Snowknight26 to revisit this feedback and tell us about whether he manages to reproduce it or not with upcoming Spring Update released IE.

Regards

Posted by Ahmad Saleem on 2/27/2014 at 1:30 PM
Firefox Nightly 30 (Build CSET: a98a1d78817f) and Chromium 35.0.1864.0 (Build 253909) does not show that screen whom link I post below:

Image: http://i.imgur.com/8Ngds4J.png

Only IE 11.0.9600.16518 on Windows 8.1 Pro x64 manage to reproduce this above screen.

Regards
Posted by Maximilian Haru Raditya on 2/28/2013 at 1:59 AM
Snowknight26, could you re-list the repro steps? What URL to visit? What the expected and actual results?
Posted by Snowknight26 on 2/6/2013 at 2:36 PM
Same problem, different header.

http://stfcc.org/misc/ie10_headers.php

Keep refreshing the page. You will eventually see IE9/IE10RP display the contents of the PNG as plain text even though the correct Content-Type header is sent.

Source: http://pastebin.com/qjutXZXg
Posted by Microsoft on 8/8/2012 at 2:21 PM
Thank you for your feedback.

We are currently unable to reproduce this issue as described.

This doesn't repro in IE9.0.8112.16421
or
win8 IE10.0.8400.0

The page will either show that a content-disposition header wasn't sent, or will ask if you want to save a file.


We value your feedback. If you have additional information that can help us recreate this issue — such as a specific url, more detailed steps, test results from different machines, or additional conditions — please reactivate the bug or submit a new bug with more details on how to reproduce the issue. You can also read the guidelines at https://connect.microsoft.com/IE/content/content.aspx?ContentID=16254 regarding filing a good bug report.

Best regards,

The Internet Explorer Team
Posted by Snowknight26 on 4/6/2012 at 11:21 AM
See: http://stfcc.org/misc/vids/?name=IE9%20ignoring%20Content-Disposition%20header

I have a feeling poeple don't read comments. Everything is explained/included in previous comments (URLs, steps, code, etc.).
Posted by Microsoft on 4/5/2012 at 1:10 PM
Thank you for your feedback.

We are currently unable to reproduce this issue as described.


We value your feedback. If you have additional information that can help us recreate this issue — such as a specific url, more detailed steps, test results from different machines, or additional conditions — please reactivate the bug or submit a new bug with more details on how to reproduce the issue. You can also read the guidelines at https://connect.microsoft.com/IE/content/content.aspx?ContentID=16254 regarding filing a good bug report.

Best regards,

The Internet Explorer Team
Posted by Snowknight26 on 3/20/2012 at 4:42 PM
Other, non-IE browsers can't reproduce the issue. Other machines can. I've tested several. I'll try to make the instructions clear as possible if you are still unable to reproduce the issue.
Posted by Microsoft on 3/19/2012 at 7:00 AM
Thank you for your feedback.

We have been unable to reproduce your issue. To assisst us in documenting the problem, please see if you can reproduce the problem with other browsers or other machines.
We appreciate your time and effort put into your reports.

Best regards,

The Internet Explorer Team
Posted by Snowknight26 on 3/10/2012 at 11:31 AM
The issue happens in both of the versions you have listed. Again, reproducing the issue is simple. Please see my previous comment on how to reproduce the issue.
Posted by Microsoft on 3/9/2012 at 2:15 PM
Thank you for your feedback.

We have tested IE9 (9.0.8112.16421) and IE10(10.0.8250.0) and neither shows the described problem.. We are currently unable to reproduce this issue as described. We have recently released a new Internet Explorer 10 Platform Preview. If you can still reproduce the issue, please submit a new feedback for the issue. Thank you.

Best regards,

The Internet Explorer Team
Posted by Microsoft on 2/29/2012 at 9:46 AM
Thank you for your feedback.

We are currently unable to reproduce this issue as described. We have recently released a new Internet Explorer 10 Platform Preview. If you can still reproduce the issue, please reactivate the feedback or submit a new feedback for the issue. Thank you.

Best regards,

The Internet Explorer Team
Posted by Snowknight26 on 12/8/2011 at 4:30 PM
Here is some PHP code to easily reproduce it.

<?php
if(time()%2==0) {
        header("Content-Control: public");
        header("Content-Description: File Transfer");
        header("Content-Disposition: attachment; filename=temp.txt");
        header("Content-Type: text/plain");
        echo "If you see this then IE9 is ignoring the Content-Disposition header.";
} else {
        echo "If you see this then no Content-Disposition header was sent.";
}
?>

Upload that to a web server, navigate to the script. When you navigate to the script at the correct time, you will see the message "If you see this then no Content-Disposition header was sent." When this happens, press F5 until you see the message "If you see this then IE9 is ignoring the Content-Disposition header." At that point you have just reproduced the error.

If, by chance, you navigate to the page and a file download is initiated, IE9 is not ignoring the Content-Disposition header.

It basically comes down to this:
Pressing Enter/the 'go to' arrow to navigate to a web page will cause IE9 to NEVER ignore the Content-Disposition header.
Pressing F5/the refresh button to refresh a web page CAN cause IE9 to ignore the Content-Disposition header.

As always, a video to demonstrate the issue: http://stfcc.org/misc/vids/?name=IE9%20ignoring%20Content-Disposition%20header



On an unrelated note, I'm very disappointed to see it take over a year for someone to respond to the issue, and then even fail at reproducing the issue. This constant routine of the issue not being reproducible, me restating what I've already stated in the report, then finally having the bug be reproduced by 'Microsoft' becomes quite disheartening. Check my feedback history.. I can't make that up.
Posted by Microsoft on 12/6/2011 at 2:22 PM
Thank you for your feedback.

We are currently unable to reproduce this issue as described.

We value your feedback. If you have additional information that can help us recreate this issue — such as a specific url, more detailed steps, test results from different machines, or additional conditions — please reactivate the bug with more details on how to reproduce the issue. You can also read the guidelines at https://connect.microsoft.com/IE/content/content.aspx?ContentID=16254 regarding filing a good bug report.

Best regards,

The Internet Explorer Team
Posted by Snowknight26 on 4/15/2011 at 5:51 PM
Unfortunately the PHP script wasn't able to be uploaded. However, the issue is easy to reproduce and I now believe is part of a bigger issue.

IE9 (seems to be fine in IE10 PP1) seems to ignore the Content-Type header as well.

Let's say you navigate to a page that switches between outputting plain text and a PNG with each subsequent visit. If you navigate to the page the first time, IE9 will display the plain text properly. If you refresh the page (F5 or the refresh button), IE9 will display the PNG as text.

On the other hand, if you navigate to the page the first time, and then afterwards navigate to the same page again by pressing enter (or clicking Go) in the address bar, IE9 will actually render the PNG instead of displaying it as text.

Using the Developer's Tools's Network tab reveals that the same data is received whether the page was refreshed or navigated to (again), so some other mechanism must be at work.