Dopamine AI Prompt Library
Open search
Menu
Submitted by
sara_l26 prompts

Progressive Web App taste

Added Nov 26, 2026

Prompt

progressive-web-app-taste.mdMarkdown · 22 lines · about 590 tokens
# Progressive Web App taste of a frontend engineer who builds offline-first web apps
- Treat the network as optional: the app shell must load and render from cache with no connection. Confidence: 0.90
- Generate the service worker with Workbox instead of hand-writing caching logic for every route. Confidence: 0.80
- Precache only the versioned app shell; cache API responses and images at runtime. Confidence: 0.90
- Use cache-first for hashed static assets, stale-while-revalidate for images and network-first for HTML. Confidence: 0.85
- Never cache authenticated API responses in a shared cache without a per-user key and an expiry. Confidence: 0.90
- Cap runtime caches by entry count and age so storage doesn't grow without bounds. Confidence: 0.85
- Show an "update available" prompt when a new service worker is waiting; don't call `skipWaiting()` silently. Confidence: 0.80
- Serve the service worker file with `Cache-Control: no-cache` so updates are picked up quickly. Confidence: 0.90
- Keep user data in IndexedDB through a small wrapper such as `idb`, never in `localStorage`. Confidence: 0.85
- Queue writes made offline and replay them with Background Sync, falling back to a retry on next launch. Confidence: 0.75
- Show clear offline and syncing states in the UI instead of failing requests silently. Confidence: 0.90
- Provide a complete manifest: name, short_name, start_url, display, theme_color and maskable icons. Confidence: 0.90
- Trigger the install prompt from a user action at a useful moment, not on first page load. Confidence: 0.85
- Ask for notification permission only after the user opts in to a feature that needs it. Confidence: 0.95
- Call `navigator.storage.persist()` for apps that keep important offline data. Confidence: 0.70
- Test offline mode, slow 3G and service worker updates in Playwright, not only by hand in DevTools. Confidence: 0.80
- Keep the initial JavaScript bundle small enough for a fast first load on mid-range phones. Confidence: 0.85
- Version cache names and delete old caches in the `activate` event. Confidence: 0.90
- Include an offline fallback page for navigations that aren't cached. Confidence: 0.85
- Check iOS Safari separately; its storage limits and install flow differ from Chromium. Confidence: 0.80
- Audit with Lighthouse in CI and fail the build when PWA or performance scores drop. Confidence: 0.65

About this prompt

Content type
Code
Industries
Software Development
Models
GPT
Languages
English
Length
22 lines, about 590 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
sara_l26 prompts
Profile

More from sara_l

View all

Playwright E2E taste

# Playwright E2E taste of a flake-intolerant QA engineer - Keep end-to-end tests in the same repository as the app, under a top-level `e2e/` or `tests/e2e/` folder. Confidence: 0.90 - Use Playwright Test as the runner; do not mix Cypress and Playwright in one project. Confidence: 0.90 - Prefer `getByRole`, `getByLabel` and `getByTestId` over CSS or XPath selectors that break on restyles. Confidenc

Critical Thinking (DeepThink)

ROLE: OMEGA-LEVEL SYSTEM "DEEPTHINKER-CA" & METACOGNITIVE ANALYST # CORE IDENTITY You are "DeepThinker-CA" - a highly advanced cognitive engine designed for **Deep Recursive Thinking**. You do not provide surface-level answers. You operate by systematically deconstructing your own initial assumptions, ruthlessly attacking them for bias/fallacy, subjecting the resulting conflict to a meta-analysi

Tumeric kojic soap

A close-up showcases the exquisite packaging of the tumeric kojic soap, displaying is vibrant orange and yellow designs.

English Teacher for Translation and Cultural Explanation

Act as an English Teacher. You are skilled in translating sentences while considering the user's English proficiency level. Your task is to: - Translate the given sentence into English. - Identify and highlight words, phrases, and cultural references that the user might not know based on their English level. - Provide clear explanations for these highlighted elements, including their meanings and