---
title: "PWA Tutorial: Turn Your Website Into a Progressive Web App"
description: "An existing website becomes an installable progressive web app with a JSON web app manifest linked from the base HTML template, an offline.html fallback, and a service worker served from the root of the manifest scope."
url: "https://swe.quest/articles/pwa-tutorial-turn-your-website-into-a-progressive-web-app-897b591251a14390"
canonical: "https://www.heroku.com/blog/how-to-make-progressive-web-app/"
source: "Heroku Engineering"
published: "2019-03-06"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["browsers","frontend","mobile","caching","javascript"]
---

# PWA Tutorial: Turn Your Website Into a Progressive Web App

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2019-03-06, 8 min read, How-to. Original: [https://www.heroku.com/blog/how-to-make-progressive-web-app/](https://www.heroku.com/blog/how-to-make-progressive-web-app/)

## Summary

An existing website becomes an installable progressive web app with a JSON web app manifest linked from the base HTML template, an offline.html fallback, and a service worker served from the root of the manifest scope. The example service worker precaches key routes on install. On fetch it tries the network first, caches every response, and falls back to the cache or offline.html when the request fails. PWAs must be served over HTTPS and are confined to their URL scope. The walkthrough covers deploying a static PWA with Heroku's static buildpack and installing the app on iOS Safari and Android Chrome.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- HTML basics
- JavaScript promises ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- HTTP caching basics ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

Progressive Web Apps, Service Workers, Web App Manifest, Cache API, Heroku, PWABuilder

## Related posts

- [Web Push for Web Apps on iOS and iPadOS](https://swe.quest/articles/web-push-for-web-apps-on-ios-and-ipados-7478bb28f95c6572.md): WebKit · 2023-02-16 · Medium · 7 min read · Browsers, Mobile, Communications, Frontend
  iOS and iPadOS 16.4 beta 1 adds standards-based Web Push for Home Screen web apps, using the Push API, Notifications API and Service Workers over Apple Push Notification service, with no Apple Developer Program membership required (allow \*.push.apple.com).
- [Meet Declarative Web Push](https://swe.quest/articles/meet-declarative-web-push-95ed121c13509f32.md): WebKit · 2025-03-27 · Medium · 9 min read · Browsers, Privacy, Communications, Frontend
  Declarative Web Push lets sites subscribe via window.pushManager and send a standardized JSON payload (keyed by "web\_push": 8030 with a required title and navigate URL) that the browser displays as a notification without any service worker JavaScript.
- [Front-End Web Deep Dive: Runtime Config](https://swe.quest/articles/front-end-web-deep-dive-runtime-config-e96590c65250b21e.md): Heroku Engineering · 2026-10-15 · Medium · 2 min read · Frontend, Configuration management, Deployment, JavaScript
  Heroku's Front-End Web Cloud Native Buildpack provides runtime configuration for static web apps by writing PUBLIC\_WEB\_-prefixed environment variables into the HTML \<head\> as data-\* attributes each time the bundled static server starts.
- [...It Works Fine Locally](https://swe.quest/articles/it-works-fine-locally-7a80ae0fb96b33a9.md): Render · 2022-08-10 · Medium · 7 min read · Deployment, Cloud platforms, Configuration management
  A deployment checklist for apps that run locally but fail in the cloud, drawn from Render support cases.
- [Light Up Your Builds with Render Webhooks](https://swe.quest/articles/light-up-your-builds-with-render-webhooks-cb1958e456f90033.md): Render · 2025-09-16 · Medium · 4 min read · Deployment, Hardware, API design
  A Raspberry Pi Pico W–driven 32×32 LED panel lights up with distinct animations whenever Render webhook events fire for build\_started, build\_ended, deploy\_started and deploy\_ended.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
