|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Caching Problems
Bit of a hard one to explain this so I hope I make some sense with it.
I’m running a number of sites (on an intranet) via IIS on NT4. Most of these sites are connecting to an Access or MS SQL database, pulling information out. I’ve come across a problem that affects all of these sites from time to time; caching. I’ll change some code, refresh the page and it will still show the old information. The only solutions I’ve found is to A) Turn caching off (Via the config, Cache ISAPI applications) but this affects redirects and things or B) click on Run In Separate Memory Space (isolated process) and when I need to refresh something click on Unload or C) Reboot the server. I've tried changing the meta-tags to No-Cache and that but that doesn't appear to have worked. None of these options are particularly good as you can imagine; A) Causes problems for the users, B) Is time consuming and C) Is just unacceptable as we need the server 24x7. Anybody seen this before? Cheers, Dean |
|
#2
|
||||
|
||||
|
Have you tried to use the following on your asp pages to prevent caching.
Code:
<%
'The following three lines of code ensure that the page is not cached on the client
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#3
|
||||
|
||||
|
Oh yes.
One of the first things I tried. ![]() |
|
#4
|
|||
|
|||
|
Is your browser configured to never check the page for updates by any chance?
There are other header tags that control caching, try searching with google for asp cache
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#5
|
||||
|
||||
|
I've set IE to look for new pages all the time.
It's a real pain. |
|
#6
|
|||
|
|||
|
Does CTRL-F5 do anything for you?
Disabling ISAPI caching works as you said, but it interferes with redirects? Can you elaborate on this? |
|
#7
|
||||
|
||||
|
Ctrl-5 doesn't work either.
If I take off ISAPI caching the redirects show a page can't be displayed. Cheers, Dean |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Caching Problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|