Question
Is there an easy way to add expires headers to static content coming from an appharbor site? I have a bunch of images, css and javascript files which have no expiry set and are holding me back on yslow.
Solution
You can do this in Web.config:
<system.webServer>
<staticContent>
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
</staticContent>
</system.webServer>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow