-
Notifications
You must be signed in to change notification settings - Fork 0
Service Worker
🇮🇱 עברית
docs/sw.js owns two deliberately separate caches:
-
CACHE(navaid-<build>) — app shell, same-origin assets, and pinned CDN runtime libraries. -
TILE_CACHE(navaid-tiles-v1) — chart packs populated explicitly bydocs/app/offline-tiles.js.
During activation, obsolete app caches are deleted but TILE_CACHE is always
preserved. Do not replace this with “delete every cache except CACHE”; that
would erase large user-downloaded chart packs on each app update.
HTML navigations are network-first and cache only successful responses, with an app-shell fallback offline. Versioned assets are cache-first; a successful miss is stored and older query-version siblings are pruned.
Chart-tile requests use the service worker only after tilePackReady confirms
that the dedicated pack cache exists. Hits come from the pack; misses go to the
network and are not passively cached. A tile-pack-changed message refreshes
the flag and cached handle after download/delete.
Deploy rewrites the app-cache name and ?v= markers to the short SHA. The tile
cache name remains stable so offline packs survive deploys.
For pilots
- Quick Start
- Features
- The Map
- Route and Legs
- Waypoints and Notes
- Inspector
- AI Assistant
- User Guide
- Frequency Changes
- VOR and Radial/DME
- Map Layers
- Bearing dial
- Extra Layers
- Airport charts
- Flight Plan
- Submit a flight plan
- Fuel
- Print and Export
- Simulator Connect
- Google Earth
- GPS Track Recording
- Bilingual UI
- Offline and PWA
- Settings and Persistence
- Keyboard and Touch
- FAQ and Troubleshooting
For developers
- Architecture
- Directory Structure
- Tuning Panel
- Hidden Tools
- LocalStorage Schema
- Nav-waypoints dataset
- Airfields dataset
- Service Worker
- Deployment
- Contributing
- Changelog
🇮🇱 עברית
לטייסים
- התחלה מהירה
- תכונות
- עוזר AI
- מדריך למשתמש
- שינויי תדר
- VOR ו-Radial/DME
- שכבות מפה
- שכבות נוספות
- תוכנית טיסה
- הגשת תוכנית טיסה
- הדפסה וייצוא
- חיבור סימולטור
- Google Earth
- הקלטת מסלול GPS
- ממשק דו-לשוני
- לא מקוון ו-PWA
- הגדרות ושמירה
- מקלדת ומגע
- שאלות נפוצות ופתרון תקלות
למפתחים
🌐 Live 🧪 Staging 📦 Repo 💡 Ideas / bugs