hey everyone,
i am working on a project and uploading it to a host site (x10hosting)
when it comes to updating something i:
1 - deploy
2 - upload to host via filezilla , looking good, no seamable issues
then 3 - if i wish to see the update i have to clear my cache
i want my update to just take affect
is there a way around this issue?
The absolute sure-way is using a different folder, thus automatically brute-forcing browsers to use new files.
like /public_html/game-ver-1-0-1/
This is likely going to effect save files though.
currently, I am using x10hosting, in google chrome, until I find a way to force this I have/will be using incognito to test, but I want to make it simple for others who may wish to try the game,
I have a friend with his own servers, he has offered me a space, does anyone know if there is a command I can get them to do or something to tell the browsers not to use the cache, i am not to worried about save data as i have a posted disclaimer stating to download the desired version on a platform to be able to save
The absolute best way is, as I mentioned, using a different folder name for each version and then use <iframe src="url" width="x" height="x"></iframe> for your entry page. So, the URL won't change but when you update the game, you alter the iframe URL.
This absolutely forces a browser to refresh the files. The trouble is that <iframe> tag may be blocked on mobile as well as any PC browser with high security preset.
Ctrl + F5 refreshes without cache for most browsers.