Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Avif images served with incorrect `Content-Type` header

Open
#1,888 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
nginx, wordpress

Research direction

Start by locating EasyEngine's generated Nginx server configuration and reviewing how MIME types are assigned for image extensions. Reproduce the issue with an AVIF image and inspect its response headers; done means AVIF responses use Content-Type: image/avif while existing WebP behavior remains correct.

Written by the indexing model from the issue text.

Description

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;
}
Dominant language
PHP
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EasyEngine/easyengine

All issues in EasyEngine/easyengine

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.