Posted by MariusMaass on October 20, 2009 at 4:36pm
| Project: | Boost |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When viewing a pdf file uploaded with WebFM the file is opened instead of downloaded, resulting in the "raw" text of a pdf-file. This bug only happends with non-logged-in users and Firefox. IE works fine and it also works good with Firefox when boost is turned off.
I'm using Drupal 6.14 and PHP 5.2.6.
Comments
#1
How can I reproduce this bug locally so it can be fixed?
This module
http://drupal.org/project/webfm
Public/Private downloads? Only PDF, anything else?
#2
Able to reproduce, now working on a fix
#3
Boost was too aggressive in what it was trying to cache. WebFM sends out multiple headers, one of them being text/html, the other being application/pdf. It was picking up the text/html and caching the PDF as text/html. Now boost only looks at the last header sent, which would be application/pdf in this case.
#4
committed
#5
Thanks, working.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.