Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Stop caching

Reply
Thread Tools

Stop caching

 
 
ZagrebMike
Guest
Posts: n/a
 
      06-06-2005
On our (intranet) web site we have an ASP page that runs a report which
serves up the results in a dynamic Excel file (i.e it specifies
Response.ContentType = "application/vnd.ms-excel"). This works fine for most
people. One user is having a problem, though: she generates the report once,
and it works fine. If she changes the parameters and runs the report again,
it displays the original result. She says it "used to" work OK.

Environment details are:
* MS Windows XP, Professional, Version 2002, Service Pack 2
* IE Version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

Some further info:
* She's cleared the Internet Explorer cache (Tools -> Internet Options ->
General tab -> Delete Files -> Check “Delete all offline content” -> OK)
* She's asked IE not to cache pages (Tools -> Internet Options -> General
tab -> Settings -> “Check for newer versions of stored pages” is set to
“Every visit to the page”.)
* She doesn’t have a proxy server configured manually (In Tools -> Internet
Options -> Connections tab -> LAN Settings, "Automatically detect settings is
checked"; but "Use automatic configuration script" and "Use a proxy server
LAN" are not checked.

The ASP includes:
Response.CacheControl = "no-cache" 'stop proxy servers caching the
page
Response.Expires = -1 'tell browser page
shouldn't be cached
Response.AddHeader "Pragma", "No-Cache" 'force IE not to cache page

Any help appreciated!
 
Reply With Quote
 
 
 
 
[MSFT]
Guest
Posts: n/a
 
      06-07-2005
Just one user got the problem? If he close the browser and reopen it again
with different parameters, will he get different results? Also, I suggest
you check the application's logic to see if this is related to the user
account or his computer.

Luke

 
Reply With Quote
 
 
 
 
ZagrebMike
Guest
Posts: n/a
 
      06-07-2005
>>Just one user got the problem?
Yes, as far as I know

>>If he close the browser and reopen it again with different parameters, will he get different results?

Yes, she gets the correct (different) results if she closes down the browser
and runs the report again.

>>I suggest you check the application's logic to see if this is related to the user account or his computer.

I'm confident that there's nothing in the app that is user- or PC-related.
Did you have anything specific in mind?

Thanks
Mike

"[MSFT]" wrote:

> Just one user got the problem? If he close the browser and reopen it again
> with different parameters, will he get different results? Also, I suggest
> you check the application's logic to see if this is related to the user
> account or his computer.
>
> Luke
>
>

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      06-08-2005
When the Excel file was passed to the client side, is there a "Open or
Save" dialog? If so, you may save the files twice to see if there is any
difference. If the saved file are same, the problem may be on server side,
or your user submit same query twice to the server. I suggest you may
perform a check with netmon to make sure this.

Luke

 
Reply With Quote
 
ZagrebMike
Guest
Posts: n/a
 
      06-08-2005
Thanks for the response.

I should have also said that, when the user runs the reports from another
PC, everything works as expected: i.e. it does appear to be a client-side
problem.

>>When the Excel file was passed to the client side, is there a "Open or Save" dialog?

No. But, if she runs the report from another PC, there *is* an "Open or
Save" dialog and the report works correctly.

Mike
 
Reply With Quote
 
ZagrebMike
Guest
Posts: n/a
 
      06-08-2005
The problem appears to have been at least partially solved, but I'm not sure
why. I asked the user to "click Folder Options on the Tools menu. Click the
File Types tab, choose “XLS Microsoft Excel Worksheet” in the Registered file
types box, and then click Advanced. Make sure that the Confirm open after
download check box is checked, and then click OK" so that I could ask her to
generate the files.

She responded: "As well as ticking the 'Confirm Open After Download', I
tried taking off the tick that said 'Browse in same window' and it seems to
have cured the problem. I have to close Excel down before I open the next
file, but that's no big deal. I took the confirm open after download off
now. And it's working fine as long as I close Excel."
 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      06-09-2005
Maybe you can have her try to enable "Browse in same window" again to see
if it can work in same IE window, if she couldn't live with closing Excel
again and again. Also, in IE, Click Tools/Internet Options, on "general"
tab, click "settings", and select "Every visit to the page", this may help
on this issue.

Luke

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
How To Stop Caching By ISP Proxy Servers Meron Lavie ASP .Net 4 07-16-2007 07:03 AM
How can I stop PDF docs from caching on my website? =?Utf-8?B?bGFuZW0=?= ASP .Net 2 07-20-2005 07:43 PM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments