29 May 2014
Link to this post
1. We have two completely different web sites both running Sitefinity 9.1.6110.0 on a Windows 2012 server.
2. Static and dynamic content compression is completely disabled on both web sites.
3. We've uploaded a PDF (A) into website #1 via Sitefinity into the default library, which is using the database storage provider.
4. We've uplaoded a PDF (B) into website #2 via Sitefinity into the default library, which is using the database storage provider.
5. PDF (A) and PDF (B) are completely unrelated, verified to be non-corrupt, and provided to us by two distinct clients.
1. We're unable to successfully download PDFs.
2. We're able to successfully download the PDFs from Internet Explorer.
3. We're able to successfully download the PDFs using command-line program, wget.
4. We're able to successfully downlaod the PDFs using a custom download script written in PHP.
1. When PDF (A) is downloaded from website #1, it is NOT the same size (bytes) as the original PDF that was used to upload into Sitefinity.
2. When PDF (B) is downloaded from website #2, it is NOT the same size (bytes) as the original PDF that was used to upload into Sitefinity.
3. The exact same behavior is exhibited by both websites regarding these differently PDFs.
4. The PDFs, both PDF (A) and PDF (B), are smaller in bytes when downloaded from Google Chrome or Firefox than the originals used to upload into Sitefinity.
5. When we examined the response headers from Google Chrome and Firefox, they contained "Content-Encoding: gzip".
6. When we examined the response headers from Internet Explorer, wget, and our custom PHP script, they DID NOT contain "Content-Encoding: gzip".
7. This prompted us to compare the web.config of another Sitefinity website that is not exibiting these behaviors, i.e., Sitefinity 8.x, and found that the only major difference was that the 8.x version DID NOT contain what appears to be a newly introduced HTTP module, RadCompression, which was present in the 9.x web.config files of websites #1 and #2.
* After we commented out the RadCompression HTTP module from the web.config file in websites #1 and #2, we were finally able to download the PDFs using Google Chrome and Fierefox with no problem.
We've searched these forums, Stack Exchange and Googled and have not found anything regarding our recent problems download PDFs in Sitefinity 9.1.x. Is anyone else having this same problem? Can anyone verify that this solution worked for them as well?