Ns_error_corrupted_content

For Workes & Pages, what is the name of the domain?

ear-training.pages.dev

What is the error message?

ns_error_corrupted_content

What is the issue or error you’re encountering

web worker based on separate JS file in assets folder has stopped working; GET request for the JS file fails in Firefox with ns_error_corrupted_content

What steps have you taken to resolve the issue?

  1. Tried accessing the JS file URL directly; this gives a 404
  2. Tried redeploying the pages app; no observed behavioral change

What are the steps to reproduce the issue?

Unclear. This used to work in a previous deploy, but no longer works (I haven’t touched the code in question).
Here’s what my app does:

  1. user loads a JS single page app hosted on cloudflare pages (ear-training.pages.dev)
  2. that app attempts to start a web worker based on the JS file at /assets/pitch-detection/worker.js
  3. the GET request to /assets/pitch-detection/worker.js fails with ns_error_corrupted_content, so the web worker creation step fails

I’m not seeing the file get requested at all in Chrome or Firefox - what do you need to do to make the service worker get loaded?

It will only be triggered if you go to ear training

Sorry, ear training

https://ear-training.pages.dev/assets/pitch-detection/worker.js

Fails to load for me because the asset just doesn’t exist, I don’t see it in any of your recent deployments. Even 5afbff21-9caf-4eb9-84fa-ba43eedd0694 from 2 months ago doesn’t have that file.

Huh, there’s definitely a nonempty /assets/pitch-detection/worker.js file in my git repo. Is there something special I need to do to expose it as part of the Cloudflare pages app?

Also, how can I replicate that check that you just did to see if the file is part of the deployment?
Is it correct that I should look under the “assets uploaded” tab in the deployment details page?

You just need it in the “build output” directory you have configured

Yes