You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, April 6th 2009, 8:34pm

loadpano() caching xml file

I am in the process of developing a dynamic editor that saves the krpano xml file to a database. While testing it out I noticed that any changes made to the xml file after it has been loaded by the loadpano function will not appear if it is loaded again by the loadpano function, the changes will be present if you reload krpano, however. I am assumming that this is being caused by caching being done by the loadpano function. Is there a way to tell the loadpano function not to cache the xml file and always run the "GET" to get the latest version?

2

Wednesday, April 8th 2009, 3:40pm

Hi,

krpano or Flash doesn't make any caching here,
the caching was handled by the browser,

e.g. when requesting for an file:
krpano => Flash => Browser => Server

you can use the normal HTTP methods to avoid caching,
maybe set it via PHP in the http header or add a random id to
the file request (e.g. pano.xml?id=4535435)

best regards,
Klaus

3

Wednesday, April 8th 2009, 8:04pm

Thanks, I will give that a shot.