views:

207

answers:

0

Hi Guys,

I am trying to figure out in ASP.NET MVC how to optimize getting the "Date modified" to use in the last-modified header in ASP.NET MVC.

I dont want to check the date of each request as this seems loss of performance.

Basically, at the moment I am using "Release Date" for date-modified, but the problem here is that everytime I do a release - all the last-modified headers update to this date.

How to set the last-modified header to the "last Date-modified" of the file ?