IIS doesn't render jxr file

寵の児 提交于 2021-01-07 08:50:32

问题


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.


回答1:


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>


来源:https://stackoverflow.com/questions/55608709/iis-doesnt-render-jxr-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!