Serve local UI static files gzip-compressed
メンテナーはふだん 1 日以内に返信
@lePereT がすでに取り組んでいます。
2026年12月1日 から。
評価
この issue はまだ評価されていません。
説明
Problem
src/services/ui/http/static.lua serves UI files uncompressed. The current local UI bundle from local-ui dev is:
| File | Raw | gzip -9 |
|---|---|---|
| JS | 151 KB | 55 KB |
| CSS | 47 KB | 8 KB |
That's about 3x more bytes than necessary on every uncached page load, which matters most on weak Wi-Fi and older devices.
Proposal
- Compress at build time. The build writes pre-compressed
.gzcopies next to the static files, so the box does no compression work at run time. - Choose per request.
static.luaserves the.gzcopy withContent-Encoding: gzipandVary: Accept-Encodingwhen the request'sAccept-Encodingallows gzip. Otherwise it serves the plain file. - Keep the existing headers right. Content type and caching headers must still describe the original file.
Done when
- A browser receives gzip responses for JS, CSS and HTML.
- A request without gzip in
Accept-Encodinggets the plain file. - Unit tests cover both paths and a missing
.gzcopy.
- 主要言語
- Lua
- スター
- 1
- フォーク
- 0
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 24
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jangala-dev/devicecode-lua のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jangala-dev/devicecode-lua#441 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
jangala-dev/devicecode-lua#440 ·
メンテナーはふだん 1 日以内に返信
-
Report browser and OS versions with local UI visits対応中かも @lePereT が 2 日前に担当しました。 オープンenhancement
jangala-dev/devicecode-lua#436 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
jangala-dev/devicecode-lua#432 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
net: active_uplink stuck on modem_secondary for ~20 h while modem_primary carries the traffic (v0.12.0-ocw4)対応中かも @rslater-cs が 3 日前に担当しました。 オープン
jangala-dev/devicecode-lua#431 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
jangala-dev/devicecode-lua の issue をすべて見る
似ている issue
-
follow-up needs-review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ksysoev/duet.nvim#310 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Jaliborc/PetTracker#509 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug discord triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
fitzforge/polestar#5203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信