0

Following this answer, I've enabled serving JavaScript and CSS from my Views folder which is helping my project's organization. Unfortunately, while I'm developing, I find I have to disable my browser cache in order to see my changes. I'd like to be able to develop without keeping DevTools open just to disable the cache.

I figure my issue is the System.Web.StaticFileHandler serving up the files in such a way that the browser caches them. I've tried using System.Web.Handlers.TransferRequestHandler like this answer suggests, but then I get 500 Server Errors instead.

Is my understanding of the problem correct? How can I resolve my issue?

Note: Not that it's relevant, but I intend to add a config transform to switch back to the static handler for releases.

Community
  • 1
  • 1
ricksmt
  • 888
  • 2
  • 13
  • 34
  • the cached version is used if the file is not changed. This is expected. Can you tell us why you don't want this behavior – Steve Feb 08 '17 at 20:01
  • I'm actively developing (and saving) and in the browser I'm seeing old versions of the files I'm working on even when I refresh. – ricksmt Feb 08 '17 at 20:09

0 Answers0