We may want to make some considerations for multiple wiki on the same
origin though.
For example a wiki that uses paths for multiple languages:
wiki.example.com/en/Foo
wiki.example.com/fr/Foo
wiki.example.com/de/Foo
...
On a setup like this all the wikis will share the same localStorage
origin and a number of them will fill up the localStorage with cache
entries for each wiki if a user visits them all.
Most of these cache entries will likely be duplicates of the contents of
other wiki.
So we may want to consider a setup where the current localStorage cache
stores hashes and then stores the actual module data inside a different
localStorage key which is shared among wiki.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://danielfriesen.name/]
On 2013-11-07 7:05 AM, Jon Robson wrote:
From personal experience don't touch cache
manifests with a barge pole...
Bear in mind the majority of browsers provide at least 5mb of local storage
and we are talking about caching a few kB at most of minified JavaScript....