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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force caching of a page

Status
Not open for further replies.

manjulam

Programmer
Feb 27, 2002
103
US
I have tried to cache one asp page. I have given the following code for that:

Response.AddHeader "Pragma", "Cache"
Response.AddHeader "cache-control","public"
Response.CacheControl="Public"
Response.Buffer = True
'Response.Expires=5
Response.ExpiresAbsolute=#August 06,2005 13:30:15#

None of this seems to be working. It is a search page and from the search results, user should be able to click on modify search button to load the search page with user's previous selection. For this, the page seems to be reloading all over again. I want it to load from cache.
Any ideas,please?
 
I have tried setting the cachecontrol to public. That doesnt work. I cannot set EnableSessionState to false as i have some session variables in the page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top