I have a website built using ReactJS which is being continuously developed and i publish a new version and build almost every day, the people who use my website have this problem that even if they do a F5 and refresh the page, everything is Memory Cached for example the chunk files, which means they don't get the latest changes and they have to manually clear the browser cache to get some result!
So here is my question, how can i tell my app that "hey, this is a new build", so if a refresh F5 happens, it downloads everything and doesn't use the cached files
Any solution is much appreciated
Thanks.
Update 01:
I just tried changing my jsconfig.json file, in hopes of changing the chunk name something like this:
{
"compilerOptions": {
"baseUrl": "src"
},
"include": [
"src"
],
"output": {
"chunkFilename": "[name].chunkv2.0.js"
}
}
But none of the chunks were different, meaning their name was a still [somehash].chunk.js
What am i doing wrong ?