Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14778

Re: Storage of quasi-static data across pages

From Stefan Weiss <krewecherl@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Storage of quasi-static data across pages
Date 2012-06-30 04:03 +0200
Organization albasani.net
Message-ID <jslmp0$eec$1@news.albasani.net> (permalink)
References <jsi6hg$gfb$1@news.albasani.net> <7b9468cf-7e02-4137-871b-8275dc1fcac2@f16g2000yqg.googlegroups.com>

Show all headers | View raw


On 2012-06-29 22:44, Scott Sauyet wrote:
> I would definitely suggest the browser cache for this, especially if
> you can use the collection of permissions, etc to generate a hash that
> can be used in a url.
...
> Moreover you can simply update one of your version numbers any time
> you want to invalidate the cache and force them to update.  It uses
> the basic mechanisms of the web.  No one has to think twice about
> implementation, and it's extremely simple.

I guess you and Tom are right. The browser cache already provides
everything I need. I think I was hoping I could finally use localStorage
outside of tests and mini-projects, but it's really unnecessary here. Ah
well, the day will come :)
(and we will be using session storage, at least)

About the versioning of cached content, I used that successfully in
other projects. It works great - you can easily invalidate the clients'
caches, and even deactivate caching completely (for testing). The app I
was talking about can't do it yet, but it will.

- stefan

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Storage of quasi-static data across pages Stefan Weiss <krewecherl@gmail.com> - 2012-06-28 20:07 +0200
  Re: Storage of quasi-static data across pages "Tom de Neef" <tdeneef@qolor.nl> - 2012-06-29 15:49 +0200
  Re: Storage of quasi-static data across pages "Phil Hunt" <aaa@aaa.com> - 2012-06-29 10:23 -0400
  Re: Storage of quasi-static data across pages Scott Sauyet <scott.sauyet@gmail.com> - 2012-06-29 13:44 -0700
    Re: Storage of quasi-static data across pages Stefan Weiss <krewecherl@gmail.com> - 2012-06-30 04:03 +0200
      Re: Storage of quasi-static data across pages Scott Sauyet <scott.sauyet@gmail.com> - 2012-07-05 04:09 -0700
        Re: Storage of quasi-static data across pages Stefan Weiss <krewecherl@gmail.com> - 2012-07-06 00:36 +0200

csiph-web