简体   繁体   中英

IIS doesn't render jxr file

My site is hosted on IIS.

I am trying the new image format jxr, but when used in a page,it is not loaded There is no 404 error on browser.

Older image format like jpeg loads correctly.

For those who forgot about MIME settings, like me, add this to web.config file:

<staticContent>
     <mimeMap fileExtension=".jxr" mimeType="image/webp" />
     <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
</staticContent>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM