mdcms/app/pages/home.md
Claude 383dbcd420
Phase 7 test setup: PWA config, sample pages, test_phase.py wiring
- 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
2026-05-17 19:11:33 +00:00

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

  1. Run python3 mdcms.py build --path app/ — confirm manifest.json and service-worker.js appear in app/
  2. Load http://localhost:8800 — service worker registers on first load
  3. Navigate to the About and Docs pages so they are fetched and cached
  4. Stop the HTTP server (Ctrl+C in its terminal)
  5. Reload — site should load fully from the service worker cache
  6. Navigate between pages — all should work offline
  7. Check that a page not yet visited shows the offline message

What to look for

  • manifest.json and service-worker.js exist after build
  • DevTools → Application → Service Workers: status activated and running
  • DevTools → Application → Cache Storage: cache named mdcms-xxxxxxxx with all files listed
  • Site loads fully with server stopped
  • Offline message (config.yml: offline-message) appears for uncached pages