IIS不呈现jxr文件 [英] IIS doesn't render jxr file

查看:44
本文介绍了IIS不呈现jxr文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站托管在IIS上.

My site is hosted on IIS.

我正在尝试新的图像格式jxr,但是在页面中使用时,未加载浏览器没有404错误.

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.

像jpeg这样的旧图像格式可以正确加载.

Older image format like jpeg loads correctly.

推荐答案

对于像我这样忘记MIME设置的用户,请将其添加到 web.config 文件中:

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>

这篇关于IIS不呈现jxr文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆