try another color scheme:


Go Back   TECH6.0 > Get Techie > Programming > ASP/ASP.NET


Prevent caching of a Page

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. ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-03-2008, 04:40 PM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default Prevent caching of a Page

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"
%>
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 08:04 PM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top