{"action":"created","issue":{"url":"https://api.github.com/repos/js-data/js-data/issues/154","labels_url":"https://api.github.com/repos/js-data/js-data/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/js-data/js-data/issues/154/comments","events_url":"https://api.github.com/repos/js-data/js-data/issues/154/events","html_url":"https://github.com/js-data/js-data/issues/154","id":85955990,"number":154,"title":"Intercept 200/304 responses for caching strategy with DSHttpAdapter","user":{"login":"rquast","id":1103891,"avatar_url":"https://avatars.githubusercontent.com/u/1103891?v=3","gravatar_id":"","url":"https://api.github.com/users/rquast","html_url":"https://github.com/rquast","followers_url":"https://api.github.com/users/rquast/followers","following_url":"https://api.github.com/users/rquast/following{/other_user}","gists_url":"https://api.github.com/users/rquast/gists{/gist_id}","starred_url":"https://api.github.com/users/rquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rquast/subscriptions","organizations_url":"https://api.github.com/users/rquast/orgs","repos_url":"https://api.github.com/users/rquast/repos","events_url":"https://api.github.com/users/rquast/events{/privacy}","received_events_url":"https://api.github.com/users/rquast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-07T22:30:22Z","updated_at":"2015-06-08T01:09:52Z","closed_at":null,"body":"Currently, the only way to automatically synchronize data is with a poll, sse or socket. If DSHttpAdapter could send etags/modified TS & intercept responses (200/304) and only update the data when a query is performed, it would be less overhead than using bypassCache which forces a refresh (though I'm assuming the 304 response is cached in the browser). Would be better if the 304 response was intercepted by JSData and the cache was served up by the local DS."},"comment":{"url":"https://api.github.com/repos/js-data/js-data/issues/comments/109819924","html_url":"https://github.com/js-data/js-data/issues/154#issuecomment-109819924","issue_url":"https://api.github.com/repos/js-data/js-data/issues/154","id":109819924,"user":{"login":"rquast","id":1103891,"avatar_url":"https://avatars.githubusercontent.com/u/1103891?v=3","gravatar_id":"","url":"https://api.github.com/users/rquast","html_url":"https://github.com/rquast","followers_url":"https://api.github.com/users/rquast/followers","following_url":"https://api.github.com/users/rquast/following{/other_user}","gists_url":"https://api.github.com/users/rquast/gists{/gist_id}","starred_url":"https://api.github.com/users/rquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rquast/subscriptions","organizations_url":"https://api.github.com/users/rquast/orgs","repos_url":"https://api.github.com/users/rquast/repos","events_url":"https://api.github.com/users/rquast/events{/privacy}","received_events_url":"https://api.github.com/users/rquast/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T01:09:52Z","updated_at":"2015-06-08T01:09:52Z","body":"Right, of course, because the options for find, etc (like bypassCache) are for all of the adapters, not just DSHttpAdapter. I get what you are saying now."}}