Bundled and Minfied version of CSS file are not getting updated until do IISReset

Jul 12, 2013 at 12:12 AM
We have an application uses the bundle and minifiction feature of MVC 4.0.
We encountered an issue where the bundle/minified file in memory does not change when the physical file changes.
That means if we go and change a file for example home.css on the site in IIS then home.min.css won’t change accordingly. It gets changed only after an IIS reset or Application pool recycle.

we narrowed the behavior down to if the file is read only.
If a file is read only, the bundle/minified version of the file does not change when the physical file is changed.

If the file is not read only (writable) then the file in memory (minified file) does change.

Does anyone know is it a known issue or there is a way we can resolve this issue.
Aug 15, 2013 at 10:36 AM
Edited Aug 15, 2013 at 10:36 AM
Same issue here, although it's not related to read-only as all our stuff is full access for development at least.

I assumed that the issue was that IIS caches CSS/ JS server-side because we set it up to do that, but switching the caching of IIS off doesn't make any difference. It's not the client cache as that's off too. So although I read the SO stuff about cache dependency, it seems it's not working.

Maybe this will help:
http://www.dotnetexpertguide.com/2012/10/aspnet-45-mvc-4-revisiting-IBundleTransform-in-bundling.html