I had an issue where I'd compile a project multiple times after quick fixes. Index would download but code.js not always. Note: code.js exported to website ok.
I set the browser to not cache as per link.
I've had the same issue, testing mostly in Chrome. Clearing the Chrome cache to get it to update worked, but wish it didn't happen to begin with. Time consuming when you don't know this is happening during testing.