코딩 · 개발원문 · prompts.chat
오프라인 중심 PWA 개발 가이드
서비스 워커, 캐싱 전략, 설치 가능성 등 오프라인 우선 PWA 구축 기준을 제공합니다.
원제 · Progressive Web App taste
- 추천 툴
- 코딩 에이전트형식 기준 추천
프롬프트 원문
# 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
출처 · prompts.chat 공개 프롬프트 모음 · 작성 Fatih Kadir Akın — CC0(저작권 포기)로 공개된 원문을 그대로 싣습니다. 한국어 제목 · 설명은 AI 번역이며, 실행 결과는 아직 없습니다.
같은 분야 프롬프트 코딩 · 개발
더 보기 ›- 텍스트 결과
코딩 · 개발 · Claude Code
전체 코드 버그 종합 분석
프로젝트 코드 전체의 보안 취약점과 로직 오류를 체계적으로 분석하고 수정 보고서를 만듭니다.
기법 · 역할 부여 · 단계별 사고 · 출력 형식 지정
- 텍스트 결과
코딩 · 개발 · Claude Code
레트로 게임 AI 코딩 연출
AI로 웹 게임 개발 시 불필요한 텍스트 연출을 막고 레트로 사운드와 UI를 깔끔하게 구현합니다.
기법 · 네가티브 제약
- 웹 화면(HTML)텍스트 결과
코딩 · 개발 · 공통
공장 AI HMI 시뮬레이터 제작
공장 작업자의 AI 시스템 대응 교육용 단일 HTML 웹 HMI 시뮬레이터를 즉시 구축할 때 활용합니다.
기법 · 역할 부여 · 단계별 지시 · 출력 형식 지정