You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
A Backbone plugin to cache calls to `Backbone.Model.prototype.fetch` and
6
6
`Backbone.Collection.prototype.fetch` in memory and `localStorage`.
7
7
8
+
Compatible with Backbone 1.0.0 and up.
9
+
8
10
## How it works
9
11
This plugin intercepts calls to `fetch` and stores the results in a cache object (`Backbone.fetchCache._cache`). If fetch is called with `{ cache: true }` in the options and the URL has already been cached the AJAX call will be skipped.
0 commit comments