669 shaares
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) …