?
Solved

How to flush cache consistently?

Posted on 2007-10-12
2
Medium Priority
?
2,858 Views
Last Modified: 2009-09-07
Hello.  sometimes my pages are being cached.  How do I make sure that I am pulling in the latest request instead of the using a cached page.

I have seen it where IIS had to be restarted to force the new pages in.

Platform: ASP, javascript, html, IIs, sql server 2000
0
Comment
Question by:swansonplace
2 Comments
 
LVL 20

Accepted Solution

by:
Gawai earned 2000 total points
ID: 20066335
add these lines in you asp pages

Response.Expires = now() - 10000
Response.Expires = 0
Response.AddHeader "pragma","no-cache"
Response.CacheControl = "no-cache"
0
 

Author Comment

by:swansonplace
ID: 20185271
Thank you for the help.  I really appreciate it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question