Browser Cache

Q&A about the latest versions
Post Reply
ggibbon
Posts: 120
Joined: Fri Aug 01, 2014 1:02 pm

Hi

I can see there have been a few queries about forcing browser to automatically clear cache,
which is useful when working on iterations of a project, then showing client instead of sending a new address link
every time.

So is it possible from Pano2vr side when outputting html, to do this.

Thanks
Greg :)
User avatar
Multimediafabrik
Posts: 63
Joined: Thu Jun 21, 2018 11:28 pm

Hi,
the browser cache isn't specified by Pano2VR.
It's a Header in the configuration of your webserver. -> https://www.imperva.com/learn/performan ... e-control/
*simplified* The pano2vr player just fetches the required files from your webserver and runs its script with the data it got from those files.
If your webserver caches those files, the pano2vr player gets those cached files and runs its script using those.

So the solution is to set the cache-control header correctly on your webserver
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Greg,
If it's just for customers previewing then there are meta tags you can use this:

Code: Select all

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
Added to the header of the HTML page.
But I would not do this for every project as this will force viewers to download files every time they look at your tours.

What you can do is edit the XML file, open it in a plain text editor, and find the tiles folder, then rename it to say node1_v2.
Then in the tiles folder rename the subfolder node1 to node1_v2
You can upload the XML and node1_v2 folder to the tiles folder.

This will then allow you to modify one panorama.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply