Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

CFContent and Internet Explorer 8

$
0
0

Hi - I was trying to use CFContent to serve a PDF .  It worked fine in Firefox but not in IE 8.

 

The problem turned out to be this code in our application.cfm (which we include alot)

 

<!---prevents back button from keeping user logged in --->

<!--- Do not use when serving files using CFCONTENT --- it breaks IE --->

 

<cfheader name="Pragma" value="no-cache">

<cfheader name="Expires" value="0">

<cfheader name="cache-control" value="no-cache, no-store, must-revalidate, max-age=0">

 

 

 

Simply using this code worked:

 

<cfheader name="Content-Disposition" value="inline;myStatement.pdf">

<cfcontent type="application/pdf" file="#fullFileAndPath#" reset="yes">

 

 

I just thought I'd share this in case it helps others.


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>