The Search Huts Articles Main Portal
 
Category Menu
Visual Basic
Search Engines
Javascript
Windows Tips
Photography
ASP
 RSS Feeds


Search in news :

Stop your asp pages caching

Category »  ASP
Posted By Guido on 24 March 2006
Comments   |   Print   |   Mail it
Stop your asp pages caching

Place this code at the top of your asp page for it to work.

[%
Response.ExpiresAbsolute = #2003-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
%]

Replace the [] with <> if you find that the page is caching then it's IIS that's doing it!



Powered by Active News

Powered by Active News Manager - gazatem.com

HOME | REGISTER | CONTACT

Copyright John Hutchison © 2000-2006

eXTReMe Tracker