IIS7 Web.Config Caching - what are the differences here, and how does it all come together?

前端 未结 2 1512
灰色年华
灰色年华 2021-01-11 18:33

In IIS7 I\'ve got the ability to set caching options. These options are added to my web.config as such...

    
                


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-11 19:16

    The main difference is that

    • the first is for server-side caching of dynamic output such as aspx pages (basically keeps the page output in memory for subsequent requests). As @artem-vertiy's answer points out, using it for static content makes no sense.

    • the second one is 'internet-side' : it is implemented by writing standard response headers, it tells both client browsers and public proxies how to manage cached files.

提交回复
热议问题