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
精彩评论