How to fix mime-type and (after disabling nosniff) 404 errors for css and js files in staging site

I found there were two problems causing this:

  1. There is some kind of server caching I apparently don’t manage. I cleared that by adding a query to the URL (like staging.site.org/?a=b) and some things started being served, but many were still giving 404s.

  2. There was a rewrite rule in .htaccess designed to prevent hotlinking things in wp-content, allowing google and my site only. That was not updated to the staging URL during creation of the staging. So the staging site was blocking itself!

Sorry, I know this kind of thing would be impossible for anyone to solve unless you had full access to the site and tons of time to devote to it. I appreciate people looking.