Major problem with Dojo Offline and Google Gears

I’m using Dojo Offline Storage, which is very cool. However, I’ve hit a snag.

I don’t know if it’s just started happening or if it has always done so, but it’s now storing against the full URL. So a variable stored to xyz.html is not accessible to abc.html, even though it’s on the same server!

Worse, changes in the querystring affect it too. So abc.html has a different storage set to abc.html?123.

Does anyone know how to solve this problem? I can’t see any reference to it in the Gears nor the Dojo docs.

Some script to test with. Save it to test.html. On the first hit, it says null. On the second it is happy. Load test.html?123 and it is null again. Why?

[sourcecode language=”js”]


Heeelp! 🙂