Skip to content

Instantly share code, notes, and snippets.

@kingbin
Created November 16, 2012 22:01
Show Gist options
  • Save kingbin/4091294 to your computer and use it in GitHub Desktop.
Save kingbin/4091294 to your computer and use it in GitHub Desktop.
Backbone - Forcing IE to not cache collections
var myUnicorns = Backbone.Collection.extend({
...
fetch: function (options) {
options.cache = false;
return Backbone.Collection.prototype.fetch.call(this, options);
}
...
})
@bu1ka
Copy link

bu1ka commented Nov 19, 2013

HI!
Fetch might be called without any options, so in this case better to use
options = options || {};
options.cache = false;
Of course you know it, but ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment