473,808 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Conten tType = "applicatio n/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.x psp_sp2_gdr.050 301-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, "Automatica lly detect settings is
checked"; but "Use automatic configuration script" and "Use a proxy server
LAN" are not checked.

The ASP includes:
Response.CacheC ontrol = "no-cache" 'stop proxy servers caching the
page
Response.Expire s = -1 'tell browser page
shouldn't be cached
Response.AddHea der "Pragma", "No-Cache" 'force IE not to cache page

Any help appreciated!
Jul 22 '05 #1
6 1831
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
2715
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 the POSTDATA content has expired and they need to refresh the page then they get a alert about refreshing expired data. I am getting complaints that this is too annoying and limits the sites useability.
3
6414
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 within the URL (we work cookieless), such as www.widgets.com/(asdiufya09r8)/mypage.aspx, and thus can not identify to which user/session each page belongs. We have tried all the textbook solutions, such as: <%@ outputcache duration="1"...
2
8232
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 great. The problem is that once the PDF has been allowed through to the browser, it won't be denied to the next user. So, if one user is allowed to see it and then a user who is not allowed to see it uses the same browser, it comes through for...
3
1954
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 great. The problem is that once the PDF has been allowed through to the browser, it won't be denied to the next user. So, if one user is allowed to see it and then a user who is not allowed to see it uses the same browser, it comes through for...
3
1345
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 ones. The problem we have is that the websites are cached at the Cisco Content Engines and take upto 3days to time out and update, so when a school uploads a new page the old is still displayed this problem only occurs within the Network. Is...
1
3412
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 automatic, the non-logged in view is shown to a logged in user if they had previously hit the page logged out. If caching is never, this problem doesn't occur. Any suggestions on how to get around this? Thanks --
2
4309
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 this by including a querystring with the url with each external stylesheet and script file declaration? For example: <link type="text/css" rel="stylesheet" href="../images/menu.css?
1
1600
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 having trouble with Opera Mobile, due to javascript caching (at least that is my suspicion) I installed Opera for Windows and had the same problem (described below), until I set the Other Modification setting to 0 in opera.ini (i.e. to set Opera to...
1
2756
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 having trouble with Opera Mobile, due to javascript caching (at least that is my suspicion) I installed Opera for Windows and had the same problem (described below), until I set the Other Modification setting to 0 in opera.ini (i.e. to set Opera to...
0
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10631
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.