Wood Chen

Add .webp Support to IIS

0 comments137 views55 words

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