-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I noticed this while working on openzim/mwoffliner#2483, which like MediaWiki itself uses the local storage to cache JavaScript modules for faster load times. This resulted in me loading JavaScript from different ZIM files of the same wiki and for some wikis even JS from a completely different wiki.
For the PR I solved this issue by adding a timestamp to the vary version check when loading from localStorage, but ultimately this seems like an issue that should be solved by the reader as getting unexpected data in localStorage from different ZIMs might cause all kinds of issues. The reader should probably clear the localStorage whenever a new ZIM file is getting loaded.
I did not test if this issue exists for other types of storage as well (session, cookies) and I didn't test it for other readers either. I would appreciate it if you could create follow-up issues for any other readers affected by this issue as well.