先說明一下

我的中文其實很差。這個繁體中文版本是在 AI 協助下翻譯的,主要是作為示範,展示網站可以提供多種語言。如果您需要能以流利中文工作的開發者,其他人可能會更適合您。

提示:將滑鼠移到任何中文上(手機上請點一下),就能看到拼音。

A quick note: my Chinese is honestly awful. This Traditional Chinese version was translated with AI help and is here mainly as an example of a site in several languages. If you're looking for a developer who works fluently in Chinese, you'll find a better fit elsewhere.

Tip: point at any Chinese text (or tap it on a phone) to see its pinyin.

改看英文版
Spec

Offline Support

尚未翻譯 此頁面以英文顯示。英文版更新於:2026-11-13 07:48

Overview

The website supports full offline browsing for public portfolio content using standard Progressive Web App (PWA) technologies combined with Blazor Static Server-Side Rendering (Static SSR).

Offline Capabilities

  • Service Worker (service-worker.js):
    • Automatically precaches core static assets (stylesheets, fonts, icons, JavaScript, and main navigation pages /, /work, /projects, /software, /hobbies).
    • Implements a cache-first with network-fallback strategy for static assets.
    • Intercepts navigation requests when offline to serve cached pages or the offline fallback screen.
  • Offline Manifest Endpoint (/api/offline-manifest):
    • Dynamically returns a JSON manifest containing all static routes, detail items (/item/{category}/{slug}), and required assets based on compiled portfolio data.
  • Download for Offline UI (offline.js / MainLayout.razor):
    • Provides a one-click "Download for offline" button in the footer that crawls the entire portfolio manifest and populates the offline cache with real-time percentage progress.
    • Automatically tracks online/offline network transitions (navigator.onLine), displaying an offline banner when disconnected and an online/offline badge in the footer.
  • Online-Only Page Protection:
    • Account and interactive pages (/login, /register, /admin, /admin/time, /members) require live server connectivity and are gracefully intercepted with an informative message when offline.