10 Dec 2007
09 Aug 2011
Link to this post
This is for Sitefinity 3.2, on IIS 6.
I have two standard document libraries, both identical as far as I can tell, with caching set the same (cache until document is changed).
On a page I've set up a link to each of the documents in one library, Both links were originally set with ?download=true. When I click a link to one of the documents, I get the expected application/x-download and I can download the file.
When I change this, so that the PDF opens in the browser window instead of downloading (remove the download querystring, and set target="_blank"), and click a link to the document, I get this response from Firefox, saying: "you have chosen to open <document name> which is a SFLB file..." See attachment "no mime type.png"
What's odd here is that in the case of this document library, using Internet Explorer or Firefox on different machines, one link now works correctly, and the other link does not.
Now, in the other document library, a PDF was uploaded, but the link on the page that points to the PDF did not have ?download=true and it opens in a new window as a PDF just fine.
I'm assuming because of the odd behavior there is something wrong with the cache control headers, but I can't say for sure, since I've checked the links on another machine, and they behave the same way as the one I made the changes on. In any case, the MIME type does not appear to be set correctly.