Bookshelve with cookbook
Photo by Brett Jordan on Unsplash

Astro PWA Cookbook

Welcome to the unofficial Astro PWA cookbook.

These recipes will show you, how to create a Progressive Web App with Astro and Vite-PWA, including offline support (even for SSR pages), push notifications and more.

Get started with the most basic installable PWA with offline support, that simply caches all static pages, using generateSW strategy.

This website is a PWA, to demonstrate the fantastic possibilities that you have when creating your PWA with Astro. It is a hybrid app, with some static pages and some rendered server-side. Nevertheless, most of it's functionality is also available offline. So enjoy this Dad joke, that will be updated server-side on every page reload (while you are online):

I wanted to be a tailor but I didn't suit the job
Dad

If you are interested in my journey of implementing this prototype to develop the recipe, I wrote a journal about it.