{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/frontend/issues/12610","repository_url":"https://api.github.com/repos/guardian/frontend","labels_url":"https://api.github.com/repos/guardian/frontend/issues/12610/labels{/name}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/12610/comments","events_url":"https://api.github.com/repos/guardian/frontend/issues/12610/events","html_url":"https://github.com/guardian/frontend/pull/12610","id":149741631,"number":12610,"title":"Don't send HTTP body if clients already have the content","user":{"login":"johnduffell","id":7304387,"avatar_url":"https://avatars.githubusercontent.com/u/7304387?v=3","gravatar_id":"","url":"https://api.github.com/users/johnduffell","html_url":"https://github.com/johnduffell","followers_url":"https://api.github.com/users/johnduffell/followers","following_url":"https://api.github.com/users/johnduffell/following{/other_user}","gists_url":"https://api.github.com/users/johnduffell/gists{/gist_id}","starred_url":"https://api.github.com/users/johnduffell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnduffell/subscriptions","organizations_url":"https://api.github.com/users/johnduffell/orgs","repos_url":"https://api.github.com/users/johnduffell/repos","events_url":"https://api.github.com/users/johnduffell/events{/privacy}","received_events_url":"https://api.github.com/users/johnduffell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-20T11:31:26Z","updated_at":"2016-04-20T16:21:09Z","closed_at":"2016-04-20T14:29:07Z","pull_request":{"url":"https://api.github.com/repos/guardian/frontend/pulls/12610","html_url":"https://github.com/guardian/frontend/pull/12610","diff_url":"https://github.com/guardian/frontend/pull/12610.diff","patch_url":"https://github.com/guardian/frontend/pull/12610.patch"},"body":"This changes facia so that if the client has the content already (as illustrated by the if-none-match header) the server will respond with 304 not modified and an empty body.\r\n\r\nThis will save bandwidth - current stats show that 25% (878 out of 3528) of requests for fronts (rss and html are supported) during a sample period (1/6th of the traffic between 9:35 and 9:54 this morning) were when the client had the correct content.  A further 123 of the requests, the client had no content to revalidate.  So this is a significant saving on bandwidth.\r\n\r\n@JustinPinner I've also tidied up that weird code I wrote last time!  I hope it is more logical now.\r\n@piuccio time to save some bandwidth ;)"},"comment":{"url":"https://api.github.com/repos/guardian/frontend/issues/comments/212499267","html_url":"https://github.com/guardian/frontend/pull/12610#issuecomment-212499267","issue_url":"https://api.github.com/repos/guardian/frontend/issues/12610","id":212499267,"user":{"login":"johnduffell","id":7304387,"avatar_url":"https://avatars.githubusercontent.com/u/7304387?v=3","gravatar_id":"","url":"https://api.github.com/users/johnduffell","html_url":"https://github.com/johnduffell","followers_url":"https://api.github.com/users/johnduffell/followers","following_url":"https://api.github.com/users/johnduffell/following{/other_user}","gists_url":"https://api.github.com/users/johnduffell/gists{/gist_id}","starred_url":"https://api.github.com/users/johnduffell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnduffell/subscriptions","organizations_url":"https://api.github.com/users/johnduffell/orgs","repos_url":"https://api.github.com/users/johnduffell/repos","events_url":"https://api.github.com/users/johnduffell/events{/privacy}","received_events_url":"https://api.github.com/users/johnduffell/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T16:21:09Z","updated_at":"2016-04-20T16:21:09Z","body":"Sum of network out per minute for the facia instances\r\n![image](https://cloud.githubusercontent.com/assets/7304387/14681578/970b800c-0719-11e6-96b1-84e671ae3bbe.png)\r\ncan you guess when I turned it on? 😝 \r\n\r\nIn case it's not clear, we went from 275MB a minute to 200MB a minute, i.e. saving over a third of network traffic and therefore saving a grand total of $10 a day on AWS bandwidth 😞 that's $3650 a year just for facia pages😆 "}}