ASP.NET MVC 3.0, IIS 7, .NET 4
I have an action that returns data that seldom changes (almost static).
Is there an easy way to:
Whats wrong with this for 304?
Response.StatusCode = 304; Response.StatusDescription = "Not Modified"; return Content(String.Empty);
and this for LastModified:
Response.Cache.SetLastModified(DateTime.Now);
Or maybe just create a 'Not Modified' Filter.