开发者

Set "Last-Modified" Header to "Date-Modified" of File in ASP.NET MVC?

开发者 https://www.devze.com 2022-12-21 07:25 出处:网络
I am trying to figure out how to optimize getting the \"Date modified\" to use in the last-modified header in ASP.NET MVC.

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

I don't 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 every time I do a release - all the last-modified headers update to this date.

How to set the last-modified header to the "last Date-modifie开发者_如何学JAVAd" of the file ?

0

精彩评论

暂无评论...
验证码 换一张
取 消