Page 1 of 1

force browser not to use cache after a while

Posted: Fri Jun 04, 2021 7:39 am
by dizzz
Hi, I know that when we upload an updated version of a project in the same link, we have to clear the cache manually or use an incognito window.
The problem is that you have to communicate this with the client every time,
so what happens when the client wants to update the content of an already published link? (it s impossible to tell the visitors to clear cache!)
Is there any way to force the browser to load the updated project again and not reference it from the cache after a certain time?
Any other workarounds?
thank in advance
dizzz

Re: force browser not to use cache after a while

Posted: Fri Jun 04, 2021 9:51 am
by CStüben

Re: force browser not to use cache after a while

Posted: Sat Jun 12, 2021 8:04 pm
by dizzz
I ve tried the ?ver=2 to skin.js and pano2vr_player.js, it reloads the two files, but the tiles are all called by the browser cache.
I ve also tried to change the pano.xml version with no result
The only workaround I ve came so far is this:
I ve created I new html file which calls in a fullscreen iframe a specific pano2vr link (this file is the link I ll give to the client)
If I need to update something in my project, I m uploading my project to another path and then I m updating in my html file the iframe src, the browser calls a new link, so no cache
I know it is not the best solution, maybe someone from the admins will give us a better solution???

thanks
dizzz

Re: force browser not to use cache after a while

Posted: Sat Jun 12, 2021 9:07 pm
by dizzz
after checking the functionality of the iframe workaround, it seems it's not a viable solution as the tour is losing it's responsive characteristics indise the iframe...

Re: force browser not to use cache after a while

Posted: Sun Jun 13, 2021 10:44 am
by zap
not sure this works for you but if you have access to your domain you can create a subdomain projectVersion01.domain.com
and you change the subdomain you provide

Re: force browser not to use cache after a while

Posted: Sun Jun 13, 2021 1:10 pm
by dizzz
I ve managed to solve it by changing the code to the html file that contains the iframe (previously mentioned), now it's responsive on mobiles too

thank you zap

dizzz