开发者

Edit HTTP response headers for an application in IIS 7

开发者 https://www.devze.com 2023-03-07 13:26 出处:网络
I have a set of applications run开发者_StackOverflow社区ning in my IIS Server 7.0. I need to \"Expire Web Content\" of one of those applications through command line. Running appcmd.exe works, but it

I have a set of applications run开发者_StackOverflow社区ning in my IIS Server 7.0. I need to "Expire Web Content" of one of those applications through command line. Running appcmd.exe works, but it changes this configuration for all the applications in IIS. Is there a way to do this for a single application?

This is the command which I ran.

appcmd.exe set config /section:staticContent /clientCache.cacheControlMode:DisableCache

Thanks.


Use the following command, just replace "SITENAME" with your site id.

appcmd.exe set config "SITENAME" /section:staticContent /clientCache.cacheControlMode:DisableCache

0

精彩评论

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