WebGL game running on localhost does not update the files

So when I build and run the WebGL game, everything is fine and it includes the updated file of index.html and style.css. However, when I host my own localhost using Python on the folder, it runs with the old version of those files.

This is the error that it gave me when I open the localhost.

What did I do to cause this error and how do I fix it?

Sometimes the browser will cache large files and reload them instead of your new builds. Try clearing the browser cache or using a private tab (incognito) as it will not cache. Hope that helps.