Skip to content

fix(sw): nginx メンテ 503 を SW が上書きしないようにする - #29

Merged
tempei-kishi merged 1 commit into
developfrom
feature/sw-offline-maintenance-fallback
Jul 10, 2026
Merged

fix(sw): nginx メンテ 503 を SW が上書きしないようにする#29
tempei-kishi merged 1 commit into
developfrom
feature/sw-offline-maintenance-fallback

Conversation

@tempei-kishi

@tempei-kishi tempei-kishi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • 計画メンテナンスの本線は Ansible 側 nginx(Xfolio_misskey_ansible#2)の 503 + maintenance.html
  • develop の SW は 5xx をオフライン HTML に置換していたため、503 は素通しして nginx メンテ画面を表示できるようにする
  • オフライン文言(ja/en)にメンテ可能性の一文を追加(保険表示)

仕様: Xissmie メンテナンス画面仕様

Test plan

  • SW 導入済み端末で通常アクセスできる
  • ネットワーク切断時にオフライン画面が出る
  • nginx メンテ ON(503)時は maintenance.html が表示され、SW のオフライン文言で上書きされない
  • 502/504 時は従来どおりオフライン画面にフォールバックする

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

計画メンテは nginx の maintenance.html が本線のため、SW が 503 をオフライン画面で置換しないよう通し、到達不可時の文言だけメンテ可能性に触れる形に整える。

Co-authored-by: Cursor <cursoragent@cursor.com>
@tempei-kishi
tempei-kishi force-pushed the feature/sw-offline-maintenance-fallback branch from 27c38d7 to bacbe67 Compare July 10, 2026 06:06
@tempei-kishi
tempei-kishi changed the base branch from main to develop July 10, 2026 06:06
@tempei-kishi tempei-kishi changed the title fix(sw): オフライン画面をメンテ保険表示に整理 fix(sw): nginx メンテ 503 を SW が上書きしないようにする Jul 10, 2026
@tempei-kishi
tempei-kishi merged commit 47e93d8 into develop Jul 10, 2026
32 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant