How to flush cache consistently?

Posted on 2007-10-12
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
Question by:swansonplace
    LVL 20

    Accepted Solution

    add these lines in you asp pages

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

    Author Comment

    Thank you for the help.  I really appreciate it.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
    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.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now