I had a caching issue and solved it by adding a random token to the url - I.e. index.html?t=24601 - basically trick the browser into thinking you have a different file.
That fixed it for me, but I'm not sure if it will fix yours.
This is basically the wrong solution.
If you are running a web server, locally, you must set the caching directives to negative, aka, never cache, or to use the eTag so it at least checksums the files. The default settings for Apache httpd and nginx don't do this because you never want to operate a web server this way.
Whenever you make an edit to the game, and you are testing in the web browser, shift-F5 to force a reload. If that isn't working, then the caching directives in your browser are too aggressive, or the caching set by the server is too aggressive.
In the host's httpd.conf:
Header unset Last-ModifiedFileETag noneExpiresActive OnExpiresDefault "access plus 1 years"This is
WRONG, but it's often the recommended solution damn near everywhere because Apache's default eTags used to use Inode which can vary if more than one server or file system serves the content.
The correct solution is to enable etags against the modification date and size so the browser CAN validate:
FileETag Size MtimeExpiresActive OffHeader set Cache-Control “max-age=60”For a production system (eg one that is actually exposed to the web) change the mag-age= to the number of seconds you actually want it cached. I put 60 for the sake of not leaving it at defaults.
Without the Etag, the browser relies on the last-modified header if present.