Commit aae2433
Also accept cached (fromCache) responses in WASM caching check
The WASM caching enforcement check previously only accepted HTTP 304
(Not Modified) as proof that a .wasm resource was cached. However,
browsers may serve cached resources with HTTP 200 from disk/memory
cache without making a network round-trip at all. Puppeteer exposes
this via response.fromCache(). Both cases indicate the resource was
properly cached after the first page load, so both should be accepted.
Without this fix, the 'Second page load' step fails with:
Unexpected uncached wasm resource '...System.Runtime.InteropServices.JavaScript.*.wasm'
even though the resource is served from the browser cache.
Co-authored-by: Copilot <[email protected]>1 parent 576b51c commit aae2433
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments