Fork me on GitHub

JSONCache by kpuputti

JSONCache is a lightweight library to help with fetching JSON data in flaky networks (eg. with mobile phones).

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.

Dependencies

Install

Include the jsoncache-x.y.z.min.js file from the build directory to your site and you're good to go!

Documentation

See github.com/kpuputti/JSONCache for usage and configuration documentation.

License

MIT licence

Authors

Kimmo Puputti (first.last@futurice.com)
Jarno Rantanen (first.last@futurice.com)

Contact

Kimmo Puputti (first.last@futurice.com)

Demo

Try out the interactive demo.

Download

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