I'm accessing HTML/JS files on localhost served by Node. When I update the code, Webpack automatically rebuilds the JS files.
Sometimes, when I refresh the page, the JS file download hangs forever. I suspect this is because I refreshed while the file is still building. It still hangs after:
- refreshing
- opening the JS file directly
- opening the HTML in a separate tab
- restarting the Node server
I need to close the original tab to be able to access the file again.
Why does this happen? I'm using Chrome 88 on Windows 10. I think this is caused by Chrome and not Node, since restarting the Node server didn't do anything. Is there a way to not need to close and reopen the tab every time?
from When refreshing a page on localhost, why does the file download hang until I close the page?
No comments:
Post a Comment