开发者

Edit HTTP response headers for an application in IIS 7

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜