How to specify HTTP expiration header? (ASP.NET MVC+IIS)

后端 未结 3 1207
遥遥无期
遥遥无期 2020-12-22 19:11

I am already using output caching in my ASP.NET MVC application.

Page speed tells me to specify HTTP cache expiration for css and images in the response header.

3条回答
  •  悲哀的现实
    2020-12-22 19:20

    Found it:

    I need to specify client cache for static content (in web.config).

    
      
        
          
        
       
    
    

    from http://www.iis.net/ConfigReference/system.webServer/staticContent/clientCache

提交回复
热议问题