Topic: No XML Cache

Hi

Is it possible to specify a 'no cache' option for the xml?
The SWF can be cached, but it has to reload the xml every time.

I initialize SV this way:
SV.simpleviewer.load('sv-container', '100%', height + 'px', '2a2a2a', true, flashvars, params, attributes);

Thanks!

Re: No XML Cache

Is it possible to specify a 'no cache' option for the xml?

Yes. Define your gallery's XML file with a unique query string identifier (e.g. the current time which will be different each time a user loads the page) using the galleryURL configuration option in your gallery's embedding code.

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
    var flashvars={};
    flashvars.galleryURL="gallery.xml?nocache="+new Date().getTime();
    var params={};
    var attributes={};
    simpleviewer.ready(function () {
        simpleviewer.load("sv-container", "100%", height + "px", "2a2a2a", true, flashvars, params, attributes);
    });
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
Steven Speirs
SimpleViewer Support Team.

Re: No XML Cache

Thanks!