AMP as PWA
In this approach, the AMP page is the PWA. It's a step up from the simple canonical AMP approach mentioned earlier. In common with the canonical approach, AMP is used for the entire range of web experiences for desktop, mobile, and anything else.
It differs from canonical AMP in that when the page is served from the source domain, its behavior can be augmented using a service worker. When served from the source domain, and not the AMP cache, the service worker can step in and handle requests and responses. This means the PWA page can do things that normally wouldn't be possible in AMP, such as adding custom components and behaviors. Since these features are delivered by the service worker, the AMP page will still be valid.
There ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access