Is the production server using a "Cache-Control: no-cache" HTTP header? 

I ran into a similar problem yesterday when opening a Word doc served by
<cfcontent> (Win2k3 server). If MS Word was closed when I tried to open
the doc from the web page, the no-cache was deleting the file before
Word started up - resulting in Word's 'file not found' error. If,
however, Word was already open, the doc displayed with no problem.
Never had any trouble saving the file to my desktop.

FWIW, this behavior was only occurring in IE6 - Firefox had no problems.

Since I need the no-cache in place, my solution was to drop the
'attachment' value from <cfheader>:
<cfheader name="Content-Disposition" value="filename=#filename#">
instead of
<cfheader name="Content-Disposition"
value="attachment;filename=#filename#">

IE now displays the Word doc inside the browser (not what I wanted), but
at least the user doesn't get an error.

hth,
-michael




> -------- Original Message --------
> Subject: cfcontent error - IE6 XP SP2 client and Win 2003 server
> From: Peter Legg <[EMAIL PROTECTED]>
> Date: Fri, July 21, 2006 2:56 pm
> To: CF-Talk <[email protected]>
> 
> I've got a page that produces and Excel file for the user to either open or 
> save.  Here's the code:
> 
> <cfcontent type="application/msexcel">
> <cfheader name="Content-Disposition" value="attachment;filename=#filename#">
> 
> This works fine from my Win2000 PC.  However, it can't be opened using IE6 on 
> an XP service pack 2 PC when hitting the production site, a Win 2003 server.  
> The file can be saved.  When accessing the development site, a Win 2000 
> server, both open and save work from this PC.
> 
> Here's an example of the error:
> 
> C:\Documents and Settings\username\Local Settings\Temporary Internet 
> Files\Content.IE5\89GL2345\filename.xls could not be found....
> 
> It obviously has to do with the ability to read/write to the Content.IE5 
> directory, which isn't visible, but just haven't been able to figure it out.  
> I've been able to reset the attributes of the folder in order to see it but 
> that hasn't solved the problem either.
> 
> Any ideas?
> 
> Thanks, Peter
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247341
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to