1

I don't want my browsers to cache anything. The issue is javascript and html keeps getting cached by IE9 and other browsers we use. Whilest we can do ctrl F5, external users can't be trusted to remeber to do this.

How can I setup my MVC web appplication to ignore caches

Ageis
  • 2,221
  • 4
  • 22
  • 34

1 Answers1

3

When loading your resources, I would append a timestamp or something random to your requests, so they will be unique and not be cached by the browser.

You can also refer to: Disable browser cache for entire ASP.NET website for more on how to send no-cache headers from ASP.NET. Note, put those settings in the Global.asax.cs-file.

Community
  • 1
  • 1
cederlof
  • 7,206
  • 4
  • 45
  • 62