Topic: Idea for solving the problem of cache

Hi,

I like your simple viewer very much.

But the browser cache sucks.

I have an idea about how to solve it.

When the viewer request the xml file, just add a random number after the url to request.

for example:
request the xml file http://www.abc.com/xml.aspx
and change it to:
http://www.abc.com/xml.aspx?134875509134

The 134875509134 is a random number between 0 and 1.

It means the request url is not unique to the cache url, but the same.

Hope it's useful!

And if you have solved the cache problem, let me know, I can download a latest version.

Re: Idea for solving the problem of cache

Browser caching is a fact of life for web developers. True you can force your viewers to allways view the latest version, but then you lose the speed benefits for re-returning visitors. Most browsers will check for new data between sessions.

If you want to implement forced-refreshes, point your xmlDataPath to a PHP script that does what you mentioned: load the XML file with an appended random string.

Felix Turner
SimpleViewer Support Team.