| |||||||
This is a discussion on Prevent caching of a Page within the ASP/ASP.NET section, part of the Programming category; The code below ensures that the webpage does not get cached and load everytime fresh from the server whenever requested. ...
![]() |
|
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| The code below ensures that the webpage does not get cached and load everytime fresh from the server whenever requested. Simply add this code at the top of your page i.e. just after <%@LANGUAGE="VBSCRIPT"%> and save it as filename.asp Code: <%Response.ExpiresAbsolute = #1/1/1980# Response.AddHeader "pragma", "no-cache" Response.AddHeader "cache-control", "private, no-cache, must-revalidate" %>
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |