A little while ago my collegue Thomas threw a tantrum over EPiServer CMS R2 SP1. When he made changes to files they weren’t reflected on his site so he had to recompile over and over again. I had the same “problem” on my first CMS R2 SP1 site and help him solve it. Apparently a couple of other guys around us had experienced the same problem and were happy to find out that there was a simple way to fix it. I thought I’d share it just in case you fellow EPiServer developers are upset about this new default activated feature too.

When installing EPiServer CMS R2 SP1 static file caching is enabled by default, and rightly so. But when you’re developing it sucks. This line in web.config exist by default

<staticFile expirationTime="12:0:0"/>

By simply changing the expiration time you solve the problem:

<staticFile expirationTime="-1.0:0:0"/>

Enjoy!

Related posts