Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Avif images served with incorrect `Content-Type` header

オープン
#1,888 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
nginx, wordpress

調査の方向性

まず、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:

  1. Install EasyEngine on a server.
  2. Create a WordPress site using EasyEngine.
  3. Install the Modern Image Formats plugin.
  4. Configure the plugin to convert images to WebP and Avif.
  5. Upload an image and observe the Content-Type header 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:

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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EasyEngine/easyengine のほかの issue

EasyEngine/easyengine の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。