Add .webp Support to IIS
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.

Last updated 2024-01-14
Comments 0