Cache jQuery AJAX requests with 'json' dataType, using localStorage or PouchDB