Answer the question
In order to leave comments, you need to log in
How to remotely reset the cache of users who have visited a specific site?
We created an online game that caches data in order to optimize further launch with a weak Internet. The game is implemented in HTML5 via C2. Updated the game, namely a number of important functional things. A couple of days have passed, some users log into the game and see the old version, send us screenshots.
How can I update/reset user cache remotely?
Tried:
1. to prescribe versions for calling key files in the format ?v=102.
2. change the file extension from index.html to index.php
3. change the file name from index.php to index2.php adding a setting to the domain to start the new name.
nothing helped. You cannot change the domain directory.
what other options are there?
Answer the question
In order to leave comments, you need to log in
Colleagues recommended to prescribe the headers, as far as I know the game takes them from the cache.
header("Cache-Control: no-cache, no-store, must-revalidate")
header("Pragma: no-cache")
header("Expires: 0)
there is another redirect option, but I think it's not the best solution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question