{"action":"created","issue":{"url":"https://api.github.com/repos/fantactuka/jquery-ajax-goodies/issues/7","labels_url":"https://api.github.com/repos/fantactuka/jquery-ajax-goodies/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/fantactuka/jquery-ajax-goodies/issues/7/comments","events_url":"https://api.github.com/repos/fantactuka/jquery-ajax-goodies/issues/7/events","html_url":"https://github.com/fantactuka/jquery-ajax-goodies/issues/7","id":52105365,"number":7,"title":"Reset cache","user":{"login":"pedrokost","id":725286,"avatar_url":"https://avatars.githubusercontent.com/u/725286?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrokost","html_url":"https://github.com/pedrokost","followers_url":"https://api.github.com/users/pedrokost/followers","following_url":"https://api.github.com/users/pedrokost/following{/other_user}","gists_url":"https://api.github.com/users/pedrokost/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrokost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrokost/subscriptions","organizations_url":"https://api.github.com/users/pedrokost/orgs","repos_url":"https://api.github.com/users/pedrokost/repos","events_url":"https://api.github.com/users/pedrokost/events{/privacy}","received_events_url":"https://api.github.com/users/pedrokost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-16T12:10:57Z","updated_at":"2015-01-09T15:39:28Z","closed_at":"2015-01-05T19:51:29Z","body":"What would be the best approach to force a reload, bypassing the cache?\r\n\r\nI could add an extra parameter ?ts=156343684 to the request, but the next time the request would be made without the parameter, the previously cached data would be returned.\r\n\r\nAlternatively, I could add a $.deleteAjaxCache() to the plugin.\r\n\r\nWhat is your opinion?"},"comment":{"url":"https://api.github.com/repos/fantactuka/jquery-ajax-goodies/issues/comments/69350434","html_url":"https://github.com/fantactuka/jquery-ajax-goodies/issues/7#issuecomment-69350434","issue_url":"https://api.github.com/repos/fantactuka/jquery-ajax-goodies/issues/7","id":69350434,"user":{"login":"pedrokost","id":725286,"avatar_url":"https://avatars.githubusercontent.com/u/725286?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrokost","html_url":"https://github.com/pedrokost","followers_url":"https://api.github.com/users/pedrokost/followers","following_url":"https://api.github.com/users/pedrokost/following{/other_user}","gists_url":"https://api.github.com/users/pedrokost/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrokost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrokost/subscriptions","organizations_url":"https://api.github.com/users/pedrokost/orgs","repos_url":"https://api.github.com/users/pedrokost/repos","events_url":"https://api.github.com/users/pedrokost/events{/privacy}","received_events_url":"https://api.github.com/users/pedrokost/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T15:39:28Z","updated_at":"2015-01-09T15:39:28Z","body":"@fantactuka Thank you for the help. I implemented the second solution you proposed and it is working very well.\r\n\r\nIn case anyone else needs this as well, I am leaving here a minimal adapter that implements this:\r\n\r\n```javascript\r\n    var Adapter = {\r\n        storage: {},\r\n\r\n        setItem: function(key, value) {\r\n            this.storage[key] = value;\r\n        },\r\n\r\n        getItem: function(key) {\r\n            return this.storage[key];\r\n        },\r\n\r\n        removeItem: function(key) {\r\n            delete this.storage[key];\r\n        },\r\n\r\n        removeAll: function() {\r\n            this.storage = {};\r\n        }\r\n    };\r\n``` "}}