Sandeep
Sandeep

Reputation: 5771

Edit HTTP response headers for an application in IIS 7

I have a set of applications running 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.

Upvotes: 0

Views: 882

Answers (1)

tnbit
tnbit

Reputation: 31

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

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

Upvotes: 1

Related Questions