jquerylove
top_menu
Home
Coding
Freebies
Web Design
Graphic Design
Marketplace
+
Friday, 6 May 2011
The easiest method to add cache capability to your static webpage
In the C# code behind file write the following inside the Page_Load method
Response.Cache.SetExpires(DateTime.Now.AddYears(1));
In the head section of the page add the following
<meta http-equiv="expires" content="mon, 27 sep 2012 14:30:00 GMT"/>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment