Hello everybody. I ran into a problem after exporting my game to HTML, after the first upload to the hosting everything was fine, but after updating to the second version of the game, nothing happened, everything remained the same as in the first version. I would like to know how to disable caching, or what else can affect this ...
P.S. (The game is completely online, I don't care about offline caching)
Develop games in your browser. Powerful, performant & highly capable.
any ideas?
Use a php index that includes your game project using "versioning" like this:
require('game.html?ver=1.0');
So, next time that you upload your game, just change the version to 1.1 or 2.0.
klabundee, I saw a similar idea somewhere, but using your method I get an HTTP500 error ...
The funny thing is that everything works when I open incognito mode in the browser. But you need to open a new window every time ...
Just tested it here.
After export your project, rename the index.html to game.html
Create and empty index.php file with just this:
I understood the first time)
But I still have this error .. I think maybe the problem is in the hosting ...
Ashley, do you know how to disable game caching in browser? delete some file or smth else ...
It should auto-update as explained in the documentation, so you shouldn't need to disable offline support to get updates. You can check what the status of the offline cache is in the browser console (press F12). It should say things like "update found", "update pending" or "up-to-date".