{"action":"opened","issue":{"url":"https://api.github.com/repos/four43/node-crisp-http-cache/issues/1","labels_url":"https://api.github.com/repos/four43/node-crisp-http-cache/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/four43/node-crisp-http-cache/issues/1/comments","events_url":"https://api.github.com/repos/four43/node-crisp-http-cache/issues/1/events","html_url":"https://github.com/four43/node-crisp-http-cache/issues/1","id":125041669,"number":1,"title":"Ensure we modify cache-control header on cached response","user":{"login":"four43","id":517006,"avatar_url":"https://avatars.githubusercontent.com/u/517006?v=3","gravatar_id":"","url":"https://api.github.com/users/four43","html_url":"https://github.com/four43","followers_url":"https://api.github.com/users/four43/followers","following_url":"https://api.github.com/users/four43/following{/other_user}","gists_url":"https://api.github.com/users/four43/gists{/gist_id}","starred_url":"https://api.github.com/users/four43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/four43/subscriptions","organizations_url":"https://api.github.com/users/four43/orgs","repos_url":"https://api.github.com/users/four43/repos","events_url":"https://api.github.com/users/four43/events{/privacy}","received_events_url":"https://api.github.com/users/four43/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-05T20:12:25Z","updated_at":"2016-01-05T20:12:25Z","closed_at":null,"body":"We need to update the cache-control header when serve out a cached response to make sure we subtract the elapsed time, for example:\r\n\r\nFirst response at 02:00:00\r\nDate: 02:00:00\r\nExpires: 02:01:00\r\nCache-Control: max-age=60\r\n\r\nSecond response at 02:00:30 (cached)\r\nExpires: 02:01:00\r\nCache-Control: max-age=60\r\n\r\n^^ max-age should now be 30, not 60\r\n\r\nGood thinking @eschwartz"}}