473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Stop caching

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!
Jul 22 '05 #1
6 1781
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

Jul 22 '05 #2
>>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

Jul 22 '05 #3
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

Jul 22 '05 #4
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
Jul 22 '05 #5
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."
Jul 22 '05 #6
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

Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: brendan | last post by:
Sorry this isnt a cross post .. i just didnt get any help from alt.php. I have a website which utilises post forms for navigation in some areas. Problem is, when *some* users hit the BACK button...
3
by: Meron Lavie | last post by:
We have written an asp.net app, which is apparently being cached by various British ISP's, and this is recking havoc with our app, as the proxy servers apparently are disregarding the session id...
2
by: lanem | last post by:
I am working on a ASP.NET 2.0 web site that has some PDFs that users can download. I'm using an HTTP module to see if the user has permission to view the PDF before loading it. This all works...
3
by: lanem | last post by:
I am working on a ASP.NET 2.0 web site that has some PDFs that users can download. I'm using an HTTP module to see if the user has permission to view the PDF before loading it. This all works...
3
by: Harry | last post by:
Hi there, we support a school network and schools are allocated webspace. To upload updates the schools website they FTP as follow - ftp://www.etc.etc.co.uk and upload new files to replace old...
1
by: James Coleman | last post by:
I am using the loginview control on my pages where a logged in user gets a different nav control than a non logged in user. The problem is, that if the client's IE page caching is set to...
2
by: mark4asp | last post by:
Can I force the client to stop caching old stylesheets and javascript? In my dynamic web-site, I need to force the client to stop caching old versions of my stylesheets and javascript. Can I do...
1
by: mwk24 | last post by:
Hi all, I have standard AJAX script that calls a php file to load the latest information and uses xmlHTTP.responseText to write it to innerHTML of a div by id. It works fine on IE/firefox, but I'm...
1
by: mwk24 | last post by:
Hi all, I have standard AJAX script that calls a php file to load the latest information and uses xmlHTTP.responseText to write it to innerHTML of a div by id. It works fine on IE/firefox, but I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.