Skip to content

Instantly share code, notes, and snippets.

@happyrobots
Created August 7, 2013 03:41
Show Gist options
  • Save happyrobots/6170999 to your computer and use it in GitHub Desktop.
Save happyrobots/6170999 to your computer and use it in GitHub Desktop.
Add max age to static contents in ASP.NET
<configuration>
<location path="Assets">
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00"/>
</staticContent>
</system.webServer>
</location>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment