How to prevent local cache of games

Hi,
I have many small mini-games that can be accessed through my site.
The problem I have is that even though I update the games - it can't be seen because any progress is saved in the cache and I'm not talking about saving action but for example - I get into a link. I see the game. I update the game assets in the background - going into the link again - I can't see the changes - Unless I clean my cache.
I can't tell my users to clean their cache.
What can be done?

Thank you
It is possible to do that through updating cookies if I remember correctly. If one cookie has an old value compared to the server, it should request an update. Either way, there's a thread on stackoverflow about trying to request a recache.
It is possible to do that through updating cookies if I remember correctly. If one cookie has an old value compared to the server, it should request an update. Either way, there's a thread on stackoverflow about trying to request a recache.
Thank you for that - I will look for the thread
do u know how do I do that in RPG ?
Moved this thread to MV Deployment. Tech Support is for technical issues using the program itself.
Being a programmer means, you spend a lot of time on stackoverflow, because there's no way you'd remember something you use once in a blue moon.
Nevertheless, you do it the same as anywhere else, you simply add a script tag to the html body with the appropriate function. Preferably to the top of the body.
I wouldn't think it's cookies, that's more for tracking users and remembering login status and stuff.

@yallkvar To be clear, you are NOT talking about a Save file?
You are talking about an asset such as an image, a script, etc.

The server tells the browser the caching behavior, so you'll need to look into the settings for your site and see what cache fields are being sent in the HTTP headers when the asset is retrieved.
https://www.keycdn.com/blog/http-cache-headers

Another possibility is if you rename a file, the browser will load it again (but cache the new file). This is how professional websites work, they have an automated process that bundles their CSS and JS into files and add a unique suffix, so the files are reloaded if they're changed.
That's probably overkill for an RPG Maker game.
@Aloe Guvner I guess you're right, but I remember some method where a version stamp file got saved into local storage, then loaded on page load and if they were different, a force reload was called. There's a way to force reload through Javascript that will also throw away all cache. It was a simple copy paste and worked well for my tutorial website.
Yeah you can do that too. The premise is that the browser "remembers" the asset from the full URL so that strategy is to use Javascript to essentially request "website.com/css/style.css?v=[random-number]"
The browser will request the asset because it thinks it's not cached, and the server should ignore the extra URL parameter. I used CSS as an example because that's a very common use case in web dev but it applies to any static asset.

Both ways are definitely viable.
Controlling the cache-headers from the server is typically the cleaner way, but people don't always have control over their servers especially if they use blog sites and stuff like that.

Edit: also happy for anyone with more experience to correct me. About 10% of my job is web dev related, so I know some things but definitely not an expert

Original thread: https://forums.rpgmakerweb.com/threads/how-to-prevent-local-cache-of-games.111618/