Reputation: 2761
Is there a simple way to configure IIS 7 to mark any JavaScript files it serves as uncacheable so that the client browser will not cache them? I'm building an app that makes extensive use of JavaScript and Chrome's lack of a hard refresh and non-deterministic behavior is driving me nuts.
Upvotes: 0
Views: 2395
Reputation: 4821
The most bulletproof solution would be to use a timestamp or some kind of a hash etc as a part of the JS filename, so that every time the browser would think it's requesting a brand new file.
Caching Tutorial is a great (and very thorough) article on controlling caching.
Upvotes: 1