mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 07:24:31 +00:00
- config.yml: pwa: yes, navigation: sidebar, offline-message - home.md: Phase 7 test instructions - about.md, docs.md: sample pages for offline cache testing - test_phase.py: all phases point to claude/* branches; EXTRA_FILES for 5 and 7 - version bump to 0.3.9 https://claude.ai/code/session_01UP8Wo2CKPNhvvTkzX48CWF
1 KiB
1 KiB
| title | sort |
|---|---|
| Home | 100 |
Phase 7 — PWA Test
This page verifies the service worker and manifest generated by mdcms build when pwa: yes is set in config.yml.
Test procedure
- Run
python3 mdcms.py build --path app/— confirmmanifest.jsonandservice-worker.jsappear inapp/ - Load
http://localhost:8800— service worker registers on first load - Navigate to the About and Docs pages so they are fetched and cached
- Stop the HTTP server (
Ctrl+Cin its terminal) - Reload — site should load fully from the service worker cache
- Navigate between pages — all should work offline
- Check that a page not yet visited shows the offline message
What to look for
manifest.jsonandservice-worker.jsexist after build- DevTools → Application → Service Workers: status activated and running
- DevTools → Application → Cache Storage: cache named
mdcms-xxxxxxxxwith all files listed - Site loads fully with server stopped
- Offline message (
config.yml: offline-message) appears for uncached pages