{"action":"created","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/1083","repository_url":"https://api.github.com/repos/square/okhttp","labels_url":"https://api.github.com/repos/square/okhttp/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/1083/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/1083/events","html_url":"https://github.com/square/okhttp/issues/1083","id":45550627,"number":1083,"title":"Support stale-if-error, stale-while-revalidate","user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/square/okhttp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/square/okhttp/milestones/20","html_url":"https://github.com/square/okhttp/milestones/3.6","labels_url":"https://api.github.com/repos/square/okhttp/milestones/20/labels","id":1874601,"number":20,"title":"3.6","description":"","creator":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":7,"state":"open","created_at":"2016-07-10T22:22:21Z","updated_at":"2016-09-21T02:58:26Z","due_on":"2016-09-30T04:00:00Z","closed_at":null},"comments":10,"created_at":"2014-10-11T13:06:45Z","updated_at":"2016-10-04T15:58:08Z","closed_at":null,"body":"Probably requires fancy joining & canceling. Stale-while-revalidate is quite tricky because a single request may yield multiple responses."},"comment":{"url":"https://api.github.com/repos/square/okhttp/issues/comments/251431501","html_url":"https://github.com/square/okhttp/issues/1083#issuecomment-251431501","issue_url":"https://api.github.com/repos/square/okhttp/issues/1083","id":251431501,"user":{"login":"DanielNovak","id":1726289,"avatar_url":"https://avatars.githubusercontent.com/u/1726289?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielNovak","html_url":"https://github.com/DanielNovak","followers_url":"https://api.github.com/users/DanielNovak/followers","following_url":"https://api.github.com/users/DanielNovak/following{/other_user}","gists_url":"https://api.github.com/users/DanielNovak/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielNovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielNovak/subscriptions","organizations_url":"https://api.github.com/users/DanielNovak/orgs","repos_url":"https://api.github.com/users/DanielNovak/repos","events_url":"https://api.github.com/users/DanielNovak/events{/privacy}","received_events_url":"https://api.github.com/users/DanielNovak/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T15:58:07Z","updated_at":"2016-10-04T15:58:07Z","body":"@felipecsl Can you provide a sample for this? I am struggling with it a little. It seems like the max-stale part has an impact on requests while you are online and they requests are returned from cache (even though I would always like to execute the request and never return from cache if the device is online).\r\n\r\nI am really hoping that OkHttp will support `stale-if-error` and `stale-while-revalidate` in future :-)."}}
{"actor":{"display_login":"DanielNovak"}}