code: function() {
              if (!this.available) return;
  
              if (window.applicationCache.status === window.applicationCache.UPDATEREADY) {
                  this.trigger("update");
              }
              return window.applicationCache.status === window.applicationCache.UPDATEREADY;
          }
docs: Check for cache update