Prioritize the loading of local images on tour demo

  • In my tour example, I want to load the image for the first time, and when I load the file again, I will use the local cache file first to reduce network usage, unless the image on the server side changes. I can't find a way to solve it, can I only use js operations to store image files and load local files? thank*smile**smile*

  • This is what happens automatically. Open your browsers developer tools and go to the network monitor. When you load your tour for the second time you will see that most of the files are coming from the cache.

    For this reason I always add a dynamical timestamp to all xml files as I don't want to be cached but be loaded from the server every time. Can be really tricky otherwise to update your panorama as people will get cached old files.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!