{"action":"created","issue":{"url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache/issues/38","repository_url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache","labels_url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache/issues/38/comments","events_url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache/issues/38/events","html_url":"https://github.com/SaneMethod/jquery-ajax-localstorage-cache/issues/38","id":158840381,"number":38,"title":"Optionally, do not clear cache on AJAX error","user":{"login":"thinkdj","id":688055,"avatar_url":"https://avatars.githubusercontent.com/u/688055?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkdj","html_url":"https://github.com/thinkdj","followers_url":"https://api.github.com/users/thinkdj/followers","following_url":"https://api.github.com/users/thinkdj/following{/other_user}","gists_url":"https://api.github.com/users/thinkdj/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkdj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkdj/subscriptions","organizations_url":"https://api.github.com/users/thinkdj/orgs","repos_url":"https://api.github.com/users/thinkdj/repos","events_url":"https://api.github.com/users/thinkdj/events{/privacy}","received_events_url":"https://api.github.com/users/thinkdj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T05:16:35Z","updated_at":"2016-06-09T19:51:25Z","closed_at":null,"body":"I am using it for a hybrid desktop app and sometimes the client is offline. AJAX fails and the cache is cleared. It would be great to have an option to keep the earlier contents till a successful fetch happens. \r\n"},"comment":{"url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache/issues/comments/225006611","html_url":"https://github.com/SaneMethod/jquery-ajax-localstorage-cache/issues/38#issuecomment-225006611","issue_url":"https://api.github.com/repos/SaneMethod/jquery-ajax-localstorage-cache/issues/38","id":225006611,"user":{"login":"SaneMethod","id":1050612,"avatar_url":"https://avatars.githubusercontent.com/u/1050612?v=3","gravatar_id":"","url":"https://api.github.com/users/SaneMethod","html_url":"https://github.com/SaneMethod","followers_url":"https://api.github.com/users/SaneMethod/followers","following_url":"https://api.github.com/users/SaneMethod/following{/other_user}","gists_url":"https://api.github.com/users/SaneMethod/gists{/gist_id}","starred_url":"https://api.github.com/users/SaneMethod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaneMethod/subscriptions","organizations_url":"https://api.github.com/users/SaneMethod/orgs","repos_url":"https://api.github.com/users/SaneMethod/repos","events_url":"https://api.github.com/users/SaneMethod/events{/privacy}","received_events_url":"https://api.github.com/users/SaneMethod/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T19:51:25Z","updated_at":"2016-06-09T19:51:25Z","body":"This should already be the case. Once a value is stored in the localCache, the next request will return the value from the cache - no request to the server is carried out in this case, so being offline shouldn't affect anything.\r\n\r\nI suggest confirming that your case doesn't involve a change to the generated/specified cacheKey in the ajax request parameters, and that the behaviour you're seeing isn't caused by the expected clearing of items once they've exceeded the default/specified time-to-live."}}
{"actor":{"display_login":"SaneMethod"}}