Fix "as generic" algorithm https://github.com/slightlyoff/ServiceWorker/issues/419