Missing `Access-Control-Max-Age` Header in HTTP Responses Causes Performance Issues
メンテナーはふだん 11 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- api, performance
調査の方向性
この issue は HTTP API のレスポンスと既存の CORS allow-* ヘッダーを対象としています。まず、それらのヘッダーがどこで出力されているかを特定してください。レスポンスに Access-Control-Max-Age: 86400 が含まれ、ブラウザーの preflight 結果をキャッシュできることを確認して、完了を検証してください。
索引モデルが issue の本文から書いたものです。
説明
Description:
Version Information:
- Version: 0.24.32
- Commit SHA: a57ad4a2742c1cefb25d3288b33ed25c6570e0d2
- Build Date: 2025-09-09
Problem:
The current HTTP API responses include the following headers for Cross-Origin Resource Sharing (CORS):
access-control-allow-headers: *access-control-allow-methods: *access-control-allow-origin: *
However, the Access-Control-Max-Age header is missing. This header is crucial for performance as it tells browsers how long they can cache the results of a CORS preflight request.
Without this header, the browser is forced to send a preflight OPTIONS request before every actual HTTP request to check if the CORS protocol is understood and the request is safe to send. This results in unnecessary, repetitive preflight requests, which significantly degrades the performance of front-end applications.
Suggestion:
It is recommended to add the Access-Control-Max-Age header to the HTTP responses. A suggested value is 86400 seconds (24 hours), which is the maximum value supported by Firefox.
Example:
Access-Control-Max-Age: 86400
Adding this header will allow browsers to cache the preflight response, eliminating the need for repeated OPTIONS requests and improving the overall performance and responsiveness of the front-end.
- 主要言語
- C
- スター
- 17.3k
- フォーク
- 562
- 平均マージ
- 10日 15時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tursodatabase/libsql のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
tursodatabase/libsql#2320 ·
メンテナーはふだん 11 日以内に返信
-
`cloudflare` feature: hrana streams are never closed対応中かも @pcbeingused333 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tursodatabase/libsql#2312 ·
メンテナーはふだん 11 日以内に返信
-
bottomless: finished S3 upload tasks are never reaped, so sqld memory grows by ~10 KB per WAL batch対応中かも @pavanmanishd が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tursodatabase/libsql#2298 · コメント 1 件 ·
メンテナーはふだん 11 日以内に返信
-
Rust local Row::get_value truncates embedded NUL TEXT and panics on malformed UTF-8 (0.9.30)対応中かも @Sanjays2402 が 35 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tursodatabase/libsql#2285 ·
メンテナーはふだん 11 日以内に返信
-
libsql-ffi: broken builds under Nix on macOS対応中かも @frectonz が 85 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
tursodatabase/libsql#2275 ·
メンテナーはふだん 11 日以内に返信
tursodatabase/libsql の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JulianKemmerer/PipelineC#395 ·
-
upstream-blocked
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libretro/parallel-n64#858 ·