Welcome to MSDN Blogs Sign in | Join | Help

Controlling HTTP Caching

Is HttpResponse.Cache the preferred way to control caching? HttpResponse is only available in ASP.NET compatibility mode.

No, you don't need ASP.NET compatibility mode to set cache headers. In fact, almost everything from HttpResponse can be done by attaching an HttpResponseMessageProperty to the outbound message. The largest difference is that HttpResponseMessageProperty makes you use a collection of headers rather than having an individual property for each header.

Next time: Best Practice for Channel Shapes

Published Thursday, October 18, 2007 5:00 AM by Nicholas Allen
Filed under: ,

Comments

Thursday, October 18, 2007 11:02 AM by Jason Haley

# Interesting Find: October 18, 2007

Thursday, October 18, 2007 11:02 AM by Jason Haley

# Interesting Finds: October 18, 2007

Saturday, October 20, 2007 2:42 PM by Nicholas Allen's Indigo Blog

# Body is a Stream

I've answered this question before but it continues to keep being asked so I'll answer it again. This

New Comments to this post are disabled
 
Page view tracker