News for hackers. Stuff that matters.
Re:Eliminate HTTP requests using JavaScript diffs and LocalS... by riskable on Tuesday November 12, 2013 @05:57PM (#6721989)
Gate One already does this (though it sends whole files not just the diffs). Once a client has an asset (JS, CSS) there's no reason for it to be re-downloaded unless there's a change.

Another improvement in Gate One's implementation is that it uses IndexedDB instead of localStorage. This is significantly more performant--especially as you add more/larger assets (localStorage blocks--always--whenever it is used).

It also downloads all assets over the WebSocket connection which has significantly improved performance over multiple GET requests. It's quite fast.

Re:Eliminate HTTP requests using JavaScript diffs and LocalS... by ricardobeat on Tuesday November 12, 2013 @06:21PM (#6722158)
Caching with localStorage is not new, the whole point is sending diffs for changes instead of re-downloading everything. This improves performance even for very dynamic data that is constantly refreshed.