Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are using IIS/ARR to act as a reverse proxy which is deployed on Windows Azure, as part of the role startup a CMD file runs which handles all of the configuration.

eg: %appcmd% set config -section:webFarms /-"[name='mywebfarm']" /commit:apphost

I am having a lot of trouble finding a way to create Cache Control Rules, as shown in this article via APPCMD

I've searched through all the config paths I can think of but cannot find any reference to cache control rules (even the ones I create manually).

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

The answer was provided via a crosspost this on the Microsof IIS forums.

http://forums.iis.net/p/1183541/2004589.aspx#2004589

You can generate the appcmd command by using Configuration Editor

  1. Open IIS Manager
  2. Click Configuration Editor icon on server level
  3. Expend the section treeview->Select "system.webServer/rewrite/globalRules"
  4. Add a rule
  5. Close the dialog windows
  6. Click Generate Script in right Actions pane)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.