Avif images served with incorrect `Content-Type` header
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- nginx, wordpress
- 領域
- devops, infrastructure
調査の方向性
まず、EasyEngine が生成した Nginx サーバー設定を見つけ、画像拡張子に対して MIME タイプがどのように割り当てられているかを確認します。AVIF 画像で問題を再現し、そのレスポンスヘッダーを調べます。AVIF のレスポンスが Content-Type: image/avif を使用し、既存の WebP の動作が引き続き正しいことが完了の条件です。
索引モデルが issue の本文から書いたものです。
説明
Description
I am using EasyEngine to host a WordPress website that utilizes the Modern Image Formats plugin to convert images to WebP and Avif formats. While WebP images are served correctly, Avif images are being served with an incorrect Content-Type header (application/octet-stream instead of image/avif).
Steps to Reproduce:
- Install EasyEngine on a server.
- Create a WordPress site using EasyEngine.
- Install the Modern Image Formats plugin.
- Configure the plugin to convert images to WebP and Avif.
- Upload an image and observe the
Content-Typeheader for the generated Avif version.
Expected Behavior:
Nginx should serve Avif images with the Content-Type: image/avif header.
Actual Behavior:
Nginx is serving Avif images with the Content-Type: application/octet-stream header.
Additional Information:
- EasyEngine version:
EE 4.8.0 - Site having issue: https://privacysandbox-stories.com/
Suggested Solution:
Update EasyEngine's Nginx configuration to include the following line within the server block:
location ~* \.(avif)$ {
add_header Content-Type image/avif;
}
- 主要言語
- PHP
- スター
- 2.2k
- フォーク
- 423
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EasyEngine/easyengine のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
EasyEngine/easyengine#1427 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
EasyEngine/easyengine#1893 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
EasyEngine/easyengine#1875 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EasyEngine/easyengine#1810 · コメント 2 件 · リアクション 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
EasyEngine/easyengine#1800 · コメント 2 件 ·
EasyEngine/easyengine の issue をすべて見る
似ている issue
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Automattic/blocks-engine#2161 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/static-site-importer#1824 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100