Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping Caching on an ASP page

Status
Not open for further replies.

joebickley

Programmer
Aug 28, 2001
139
0
0
GB
Hi Want to be able to put a line into an ASP page that stops the browser from cache'ing it. As it stands sometimes it doesnt update after underlying data changes. I want it to fully re-run everytime.

how do i do this?


Thanks

Joe

 
Before you output any code back to the browser, try inserting a:
Code:
Response.Expires=-1

This must be part of the HTTP Header for the Response object.

If you want to cache something for x minutes, use:
Code:
Response.Expires=x

Pete.


Web Developer / Aptrix CMS (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top