I already use output caching in my ASP.NET MVC application.
Page speed tells me to indicate the expiration of the HTTP cache for css and the images in the response header.
I know that the Response object contains some properties that control the expiration of the cache. I know that these properties can be used to control HTTP caching for the response that I serve from my code:
Response.Expires Response.ExpiresAbsolute Response.CacheControl
or alternatively
Response.AddHeader("Expires", "Thu, 01 Dec 1994 16:00:00 GMT");
Question: how to set the Expires header for resources that are serviced automatically, for example. images, css, etc.
Marek Apr 09 2018-10-09T00: 00Z
source share