{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/resource-timing/issues/59","repository_url":"https://api.github.com/repos/w3c/resource-timing","labels_url":"https://api.github.com/repos/w3c/resource-timing/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/w3c/resource-timing/issues/59/comments","events_url":"https://api.github.com/repos/w3c/resource-timing/issues/59/events","html_url":"https://github.com/w3c/resource-timing/issues/59","id":158214856,"number":59,"title":"Behaviour with regards to caching","user":{"login":"Krinkle","id":156867,"avatar_url":"https://avatars.githubusercontent.com/u/156867?v=3","gravatar_id":"","url":"https://api.github.com/users/Krinkle","html_url":"https://github.com/Krinkle","followers_url":"https://api.github.com/users/Krinkle/followers","following_url":"https://api.github.com/users/Krinkle/following{/other_user}","gists_url":"https://api.github.com/users/Krinkle/gists{/gist_id}","starred_url":"https://api.github.com/users/Krinkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krinkle/subscriptions","organizations_url":"https://api.github.com/users/Krinkle/orgs","repos_url":"https://api.github.com/users/Krinkle/repos","events_url":"https://api.github.com/users/Krinkle/events{/privacy}","received_events_url":"https://api.github.com/users/Krinkle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-02T19:00:20Z","updated_at":"2016-06-03T19:29:39Z","closed_at":null,"body":"It's unclear to me what the expected behaviour is from user agents with regards to cached resources.\r\n\r\nCurrent behaviour as observed in Chrome and Firefox:\r\n\r\nNatural first view (cold cache):\r\n* Chrome\r\n * Network inspector shows 200 OK entries for images.\r\n * `performance.getEntries()` includes these (no size fields yet per [chromium #467945](https://bugs.chromium.org/p/chromium/issues/detail?id=467945)).\r\n* Firefox\r\n * Network inspector shows 200 OK entries for images.\r\n * `performance.getEntries()` includes these.\r\n\r\nNatural second view (cache primed, navigating to the same page again):\r\n* Chrome\r\n * Network inspector shows **200 (cached)** entries for images.\r\n * `performance.getEntries()` includes these.\r\n* Firefox\r\n * Network inspector shows **no entries** for images.\r\n * `performance.getEntries()` **does not include** these.\r\n\r\nManual reload:\r\n* Chrome\r\n * Network inspector shows **304** entries for images.\r\n * `performance.getEntries()` includes these.\r\n* Firefox\r\n * Network inspector shows **304** entries for images.\r\n * `performance.getEntries()` includes these (as expected with a small transferSize but with full *BodySize).\r\n\r\nThe spec has wording about \"relevant application caches\", and it seems both browsers implement this for the reload/304 scenario. But the behaviour for natural cache hits is inconsistent (e.g. where the resource is within the local max-age and therefor no request goes to the network).\r\n\r\nI'm also not sure what the expected behaviour should be. On the one hand it seems useful to be able to instrument actual network activity (as observed in the timeline). On the other hand it also seems useful to be able to calculate all resources used by the user agent (regardless of where they come from).\r\n\r\nAlso with [Web Manifesto](https://extensiblewebmanifesto.org/) in mind, it seems best to include them all - which will allow authors to satisfy both uses cases (by calculating the field of interest, either transferSize or *BodySize)"},"comment":{"url":"https://api.github.com/repos/w3c/resource-timing/issues/comments/223672097","html_url":"https://github.com/w3c/resource-timing/issues/59#issuecomment-223672097","issue_url":"https://api.github.com/repos/w3c/resource-timing/issues/59","id":223672097,"user":{"login":"Krinkle","id":156867,"avatar_url":"https://avatars.githubusercontent.com/u/156867?v=3","gravatar_id":"","url":"https://api.github.com/users/Krinkle","html_url":"https://github.com/Krinkle","followers_url":"https://api.github.com/users/Krinkle/followers","following_url":"https://api.github.com/users/Krinkle/following{/other_user}","gists_url":"https://api.github.com/users/Krinkle/gists{/gist_id}","starred_url":"https://api.github.com/users/Krinkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krinkle/subscriptions","organizations_url":"https://api.github.com/users/Krinkle/orgs","repos_url":"https://api.github.com/users/Krinkle/repos","events_url":"https://api.github.com/users/Krinkle/events{/privacy}","received_events_url":"https://api.github.com/users/Krinkle/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T19:29:39Z","updated_at":"2016-06-03T19:29:39Z","body":"Thanks @yoavweiss, @igrigorik. Looks like it was reported already - https://bugzilla.mozilla.org/show_bug.cgi?id=1113676."}}
{"actor":{"display_login":"Krinkle"}}