Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing PDF, XLS, DOC on a secure connection (HTTPS)

SSL

Viewing PDF, XLS, DOC on a secure connection (HTTPS)

by  medic  Posted    (Edited  )
The following HTTP headers create a problem if the server is using Secure Sockets Layer (SSL):
[tt][blue]
Pragma: no-cache
Cache-control: no-cache, max-age=0, must-revalidate
[/blue][/tt]
Remove them from the Custom HTTP Headers entry in the HTTP Headers tab of the IIS properties.

If you are using ASP or PHP to output such files, remove the following codes (if they exist):
[tt]
ASP:
Response.AddHeader "Cache-control", "no-cache"
Response.AddHeader "Pragma", "no-cache"

PHP:
header("Cache-Control: no-cache");
header("Pragma: no-cache");
[/tt]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top