Skip to main content
Participant
April 26, 2012
Question

CFContent and Internet Explorer 8

  • April 26, 2012
  • 1 reply
  • 1005 views

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.

This topic has been closed for replies.

1 reply

Participant
January 28, 2014

I tried this and it didn't work.  I am using IE 9, however.  Probably a different <cfheader tag needed.