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-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;
}
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-Typeheader (application/octet-streaminstead ofimage/avif).Steps to Reproduce:
Content-Typeheader for the generated Avif version.Expected Behavior:
Nginx should serve Avif images with the
Content-Type: image/avifheader.Actual Behavior:
Nginx is serving Avif images with the
Content-Type: application/octet-streamheader.Additional Information:
EE 4.8.0Suggested Solution:
Update EasyEngine's Nginx configuration to include the following line within the server block: