Csharp client side private caching

We can enable private caching if we specified a value of ‘Client’ for the Location attribute of an OutputCache directive on a page. This page would not be saved in the server cache but will be saved in the client’s cache. The response would include a Cache-Control header value of private and an Expires header with a timestamp set to the time indicated by the Duration attribute.

<%@ OutputCache Duration='120' Location='Client'
                VaryByParam='none' %>

Generates the following response:

HTTP/1.1 200 OK
Server: Microsoft-IIS/7.0
Date: Thu, 04 Mar 2010 12:00:00 GMT
Cache-Control: private
Expires: Thu, 04 Mar 2010 12:02:00 GMT
Share Article/Example:
  • DotNetKicks
  • DZone
  • StumbleUpon
  • Print
  • Add to favorites
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • LinkedIn
  • Posterous
  • Slashdot

 

 
eXTReMe Tracker