Created
August 25, 2022 20:31
-
-
Save nehemiahj/966935d281f1ce6ff8305ac1378e359f to your computer and use it in GitHub Desktop.
Cache Control Header for 301 Redirects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<outboundRules> | |
<rule name="Require clients to revalidationpermanent redirects"> | |
<match serverVariable="RESPONSE_Cache_Control" pattern=".*" /> | |
<conditions> | |
<add input="{RESPONSE_STATUS}" pattern="301" /> | |
</conditions> | |
<action type="Rewrite" value="public, must-revalidate, max-age=0"/> | |
</rule> | |
</outboundRules> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment