JS files are blocked when reloading the page

I have a selfhosted ERPNext server which is upgraded from v12 to v13. I have finished the upgrade and all of the data and apps are working. The only problem is that my public JS files are blocked when I reload the page. Everything works when I login for the first time or clean my cache/cookies, but when I refresh the page then my JS files are blocked. This is because the MIME type is mismatch.

Github issue

Any idea where I can look to fix this?

It is fixed. See Github post