Daily Shaarli

All links of one day in a single page.

December 9, 2015

Limiting the Cache in Service Workers Revisited | Brandon Rozek

Summary: I rewrote how cache limiting works to address a few problems listed later in this post. Check out the gist for the updated code. I wrote a function in my previous service worker post to help limit the cache. Here’s a reminder of what it looked like. var limitCache = function(cache, maxItems) { cache.keys().then(function(items) …