Wood Chen

Add .webp Support to IIS

Published
Views
150
Comments
0
Words
55

This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

While optimizing my website's frontend today, I tried using images in the .webp format, which compresses very well. However, IIS doesn't support .webp by default. Without a MIME type configured, requests return a 404 error.

Configure the MIME type as follows:

Name: .webp
Type: image/webp

After adding it, the images loaded normally.

image

Last updated 2024-01-14

Related posts

Comments 0