Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2017 15:14
What would you like to do?
Security and Caching settings for web.config in ASP.NET
<httpCookies requireSSL="true" />
<add name="Strict-Transport-Security" value="max-age=31536000"/>
<add name="X-XSS-Protection" value="1; mode=block"/>
<add name="X-Content-Type-Options" value="nosniff"/>
<remove fileExtension="" />
<mimeMap fileExtension="" mimeType="application/json" />
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1000.00:00:00" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment