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

2

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.