It caches the requested data in HTML5 localStorage on the client side, and further attempts to fetch the same data (identified by the URL) don't thus need any networking, even if the browser window is closed.
The library attempts to fetch the data multiple times to avoid errors with small network interrruptions.
Include the jsoncache-x.y.z.min.js file from the build directory to your site and you're good to go!
See github.com/kpuputti/JSONCache for usage and configuration documentation.
MIT licence
Kimmo Puputti (first.last@futurice.com)
Jarno Rantanen (first.last@futurice.com)
Kimmo Puputti (first.last@futurice.com)
Try out the interactive demo.
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/kpuputti/JSONCache