Oookay I just took a look at this, and it's due to the new `assets_navigation_prefers_asset_serving`

Oookay I just took a look at this, and it's due to the new assets_navigation_prefers_asset_serving compat flag that was enabled by default on April 1st. Now, if requests include the Sec-Fetch-Mode: navigate header, which happens on page navigation, and in SPA mode, the
index.html
or
404.html
is served, instead of the Worker being invoked.

If you open your browser console and run await (await fetch('/api/hello')).json(), you'll see the expected response, and the Worker get invoked.
Was this page helpful?