amp-sw
amp-sw copied to clipboard
A drop in service worker library to help your AMP pages gain network resiliency in 1 line
DOMException: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
I get this exception occasionally for the amp.dev serviceworker. I'm not 100% sure how to reproduce this. Loading the page -> clearing cache in DevTools -> reloading a few times...
inside the body of `makeRequest` in the `AmpDocumentNetworkFirst` class there is a check for `request` where it could be nullable but we return `request` anyways as the base case and...
Webpack is inserting quite a bit of boilerplate into the output. Let's move to Rollup and remove it.
In early design builder was a core component to be consumed by the end users, but now it is only used to create a service worker for e2e tests. Its...
Right now we only have `core.js` and `optional.js` as our output files. We'd like to rename `core.js` to `amp-sw.js` and split `optional.js` to a single js file per module.
The SW caches a number of URL types (images, documents, etc). One that appears to be missing is `` API calls. Consider a category page on an ecomm site. It...
- Webpack for target of `worker` does not respect public path. PR for the same here: https://github.com/webpack/webpack/pull/8562 - For now we can add a babel transform/webpack plugin to do the...