News for hackers. Stuff that matters.
Re:Idea: keep clientside js in localStorage by dominictarr on Tuesday April 24, 2012 @12:56AM (#3882497)
the problem with browser caching is that you cannot control when you want it to update, except with a timeout.
Re:Idea: keep clientside js in localStorage by abend on Tuesday April 24, 2012 @01:09AM (#3882528)
Timeout isn't the only way. You could set a version variable on pageload, and have a conditional version check on init. If the versions match and localstorage exists, load from localstorage, if not, grab from the server and update.