I'm developing an ASP MVC Single Page Application with Visual Studio 2012. It uses components made of static JS / CSS / HTML files and loaded per need. The approach works great without even needing bundling in production, since statics is cached by the browser, but there is a problem in dev, since cache has to be disabled to refresh files I'm working on at the moment, and that means about 100 small static files are loaded with each page refresh taking about 40 seconds.
I'm currently lookin into Chrome Workspaces, but I think that a more universal viable solution is to specifically disable cache for files with modification date within last 30 minutes.
I'm looking for alternative solutions or an existing component to disable cache for recently modified files in VS / ASP (a custom HTTP handler?).
Assuming you are using IIS or IIS Express, the simplest solution is just to disable caching entirely in your development environment by adding settings to your
web.configfile.Alternatively, you can disable caching of files in a specific location of your website:
In either case, you can use web config transformation during your release in order to remove these sections in your test/production environments.
Reference: How do I disable caching of an individual file in IIS 7 using weserver config settings