DEV Community

Discussion on: Web.config redirects with rewrite rules - https, www, and more

Collapse
 
dsesteban profile image
Dennis Pérez • Edited

This works smoothly to me, thanks a lot! Do you know how could i now add some cache rules for static content in that same web.config file? something like this:

<configuration>
  <system.webServer>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="00:00:15" />
    </staticContent>
  </system.webServer>
</configuration>
Enter fullscreen mode Exit fullscreen mode

every single time i've tried, my app fails.

Collapse
 
thomasardal profile image
Thomas Ardal

Don't know off the top of my head. Maybe look for something like this: stackoverflow.com/a/2196848/758765 ?