{"id":15499655,"url":"https://github.com/mitar/chromium-1380505","last_synced_at":"2025-04-09T20:48:24.404Z","repository":{"id":232587989,"uuid":"668656362","full_name":"mitar/chromium-1380505","owner":"mitar","description":"Reproduction for https://bugs.chromium.org/p/chromium/issues/detail?id=1380505","archived":false,"fork":false,"pushed_at":"2023-07-20T10:01:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T13:24:31.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-20T10:01:02.000Z","updated_at":"2023-07-20T10:01:16.000Z","dependencies_parsed_at":"2024-04-10T13:42:54.193Z","dependency_job_id":null,"html_url":"https://github.com/mitar/chromium-1380505","commit_stats":null,"previous_names":["mitar/chromium-1380505"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitar%2Fchromium-1380505","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitar%2Fchromium-1380505/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitar%2Fchromium-1380505/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitar%2Fchromium-1380505/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitar","download_url":"https://codeload.github.com/mitar/chromium-1380505/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111766,"owners_count":21049571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T08:54:25.118Z","updated_at":"2025-04-09T20:48:24.380Z","avatar_url":"https://github.com/mitar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository is a reproduction for [Chromium issue 1380505](https://bugs.chromium.org/p/chromium/issues/detail?id=1380505).\nThe issue is that it is not possible to catch both HTML and JSON responses for the same URL. Requesting both resources\ninvalidate any cached version of each other.\n\nTo run, you should use [Go](https://go.dev/):\n\n```\ngo run main.go\n```\n\nAnd then open [http://localhost:8000/](http://localhost:8000/) in Chromium. Open network tab in DevTools.\n\n## Expected\n\nThe first time you should see three requests made, one for `/` for `text/html`, another for `/data.json`\nfor `application/json` and another for `/data.json` for `text/html`. In the server's terminal you should see\nsomething like:\n\n```\n2023/07/20 11:51:04 Listening on :8000\n2023/07/20 11:51:12 Serving HTML at /\n2023/07/20 11:51:12 Serving JSON at /data.json\n2023/07/20 11:51:12 Serving HTML at /data.json\n```\n\nLoading the page again should ideally not make any requests (handled all from cache) given that all responses\nare set to `immutable` `Cache-Control` response header, or at least there should be only request for `/`\n(as it is the main requested page) made.\n\n## Actual\n\nYou see every time you open the page three requests made to the server.\n\n## Discussion\n\nEtags do not help. `immutable` `Cache-Control` header does not help. A browser still make requests.\n\nTested on Chromium 114.0.5735.198. Firefox 115.0.2 behaves the same.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitar%2Fchromium-1380505","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitar%2Fchromium-1380505","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitar%2Fchromium-1380505/lists"}