{"action":"created","issue":{"url":"https://api.github.com/repos/metacpan/metacpan-web/issues/1640","repository_url":"https://api.github.com/repos/metacpan/metacpan-web","labels_url":"https://api.github.com/repos/metacpan/metacpan-web/issues/1640/labels{/name}","comments_url":"https://api.github.com/repos/metacpan/metacpan-web/issues/1640/comments","events_url":"https://api.github.com/repos/metacpan/metacpan-web/issues/1640/events","html_url":"https://github.com/metacpan/metacpan-web/issues/1640","id":129743633,"number":1640,"title":"Logged In Users Favourites fetched on every page request","user":{"login":"kentfredric","id":44790,"avatar_url":"https://avatars.githubusercontent.com/u/44790?v=3","gravatar_id":"","url":"https://api.github.com/users/kentfredric","html_url":"https://github.com/kentfredric","followers_url":"https://api.github.com/users/kentfredric/followers","following_url":"https://api.github.com/users/kentfredric/following{/other_user}","gists_url":"https://api.github.com/users/kentfredric/gists{/gist_id}","starred_url":"https://api.github.com/users/kentfredric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentfredric/subscriptions","organizations_url":"https://api.github.com/users/kentfredric/orgs","repos_url":"https://api.github.com/users/kentfredric/repos","events_url":"https://api.github.com/users/kentfredric/events{/privacy}","received_events_url":"https://api.github.com/users/kentfredric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ranguard","id":60391,"avatar_url":"https://avatars.githubusercontent.com/u/60391?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguard","html_url":"https://github.com/ranguard","followers_url":"https://api.github.com/users/ranguard/followers","following_url":"https://api.github.com/users/ranguard/following{/other_user}","gists_url":"https://api.github.com/users/ranguard/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguard/subscriptions","organizations_url":"https://api.github.com/users/ranguard/orgs","repos_url":"https://api.github.com/users/ranguard/repos","events_url":"https://api.github.com/users/ranguard/events{/privacy}","received_events_url":"https://api.github.com/users/ranguard/received_events","type":"User","site_admin":false},"assignees":[{"login":"ranguard","id":60391,"avatar_url":"https://avatars.githubusercontent.com/u/60391?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguard","html_url":"https://github.com/ranguard","followers_url":"https://api.github.com/users/ranguard/followers","following_url":"https://api.github.com/users/ranguard/following{/other_user}","gists_url":"https://api.github.com/users/ranguard/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguard/subscriptions","organizations_url":"https://api.github.com/users/ranguard/orgs","repos_url":"https://api.github.com/users/ranguard/repos","events_url":"https://api.github.com/users/ranguard/events{/privacy}","received_events_url":"https://api.github.com/users/ranguard/received_events","type":"User","site_admin":false}],"milestone":null,"comments":21,"created_at":"2016-01-29T11:49:01Z","updated_at":"2016-11-17T19:42:33Z","closed_at":null,"body":"I was trying to diagnose why my page loads were taking so long, and I found some \"fun\" things.\n\nEvery page request fetches `https://metacpan.org/account/favorite/list_as_json`, logged in or not. \n\nAnd when diagnosing the problem using webpagetest.org ( as recommended by fastly ), this URI stuck out as being a significant slowdown, taking 500ms to query, ... and then returning 403.\n\n> https://metacpan.org/source/RJBS/if-0.0606/Changes\n> ![snapshot](http://www.webpagetest.org/waterfall.php?test=160129_ZR_K03&run=1&cached=0)\n\nUpon performing this myself, I found that a lot of metadata is being fetched without an obvious application. Specifically, its strange to be seeing so much metadata about \"who I am\" and \"my favourites\" when I'm on a page unrelated to \"me\", and I'm not seeing how that data is useful except for the fact I have to be logged in _somehow_\n"},"comment":{"url":"https://api.github.com/repos/metacpan/metacpan-web/issues/comments/261348051","html_url":"https://github.com/metacpan/metacpan-web/issues/1640#issuecomment-261348051","issue_url":"https://api.github.com/repos/metacpan/metacpan-web/issues/1640","id":261348051,"user":{"login":"kentfredric","id":44790,"avatar_url":"https://avatars.githubusercontent.com/u/44790?v=3","gravatar_id":"","url":"https://api.github.com/users/kentfredric","html_url":"https://github.com/kentfredric","followers_url":"https://api.github.com/users/kentfredric/followers","following_url":"https://api.github.com/users/kentfredric/following{/other_user}","gists_url":"https://api.github.com/users/kentfredric/gists{/gist_id}","starred_url":"https://api.github.com/users/kentfredric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentfredric/subscriptions","organizations_url":"https://api.github.com/users/kentfredric/orgs","repos_url":"https://api.github.com/users/kentfredric/repos","events_url":"https://api.github.com/users/kentfredric/events{/privacy}","received_events_url":"https://api.github.com/users/kentfredric/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T19:42:33Z","updated_at":"2016-11-17T19:42:33Z","body":"I am no longer seeing 500ms requests for list_as_json, now under <100ms  ( often less than 10ms )"}}
{"actor":{"display_login":"kentfredric"}}