Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 7th, 2005, 08:25 AM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
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

Reply With Quote
  #2  
Old March 7th, 2005, 06:25 PM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
Click here for more information.
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,384 lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 23 h 40 m 30 sec
Reputation Power: 1488
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#

Reply With Quote
  #3  
Old March 7th, 2005, 07:02 PM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
Oh yes.

One of the first things I tried.

Reply With Quote
  #4  
Old March 7th, 2005, 08:10 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
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

Reply With Quote
  #5  
Old March 8th, 2005, 05:32 AM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
I've set IE to look for new pages all the time.

It's a real pain.

Reply With Quote
  #6  
Old March 8th, 2005, 07:45 PM
avkb03 avkb03 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 110 avkb03 User rank is Private First Class (20 - 50 Reputation Level)avkb03 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 10 h 41 m 54 sec
Reputation Power: 4
Does CTRL-F5 do anything for you?

Disabling ISAPI caching works as you said, but it interferes with redirects? Can you elaborate on this?

Reply With Quote
  #7  
Old March 9th, 2005, 03:59 AM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
Ctrl-5 doesn't work either.

If I take off ISAPI caching the redirects show a page can't be displayed.

Cheers,

Dean

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Caching Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT