JPEG图像未通过Apache Web服务器加载到IE11浏览器中 [英] JPEG Images not loading in IE11 browser through apache web server

查看:195
本文介绍了JPEG图像未通过Apache Web服务器加载到IE11浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用apacher Web服务器将静态内容(例如图像,css等)分散到我的网站中.下面是我的Apache配置,设置如下:

I'm using apacher web server to stre the static content (like images, css etc.) with my website. Below is my apache configurations set as below :

<IfModule mod_expires.c>
  ExpiresActive on
   <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|html)$">
        ExpiresActive On
        ExpiresDefault "access plus 30 minutes"
   </FilesMatch>
</IfModule>

<IfModule mod_headers.c>
  <FilesMatch ".+\.(ico|jpg|jpeg|png|gif|js|css|swf|html|woff)$">
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options nosniff
  </FilesMatch>
</IfModule>

请注意,对于相同的jpeg图像,相同的apache配置在测试区域中有效,而在生产区域中则无效.

Please note that the same apache configuration is working in test region, but not working in prod region for same jpeg images.

该缓存适用于woff,css,js,png文件,但不适用于我的几个jpeg图像,这些图像是从某个网站屏幕的特定文件夹中加载的.知道为什么吗?

The cache works well for woff,css, js,png files, but doesnt work for my few jpeg images which are loaded from specific folder for one of the website screen. Any idea why?

谢谢.

推荐答案

在我们的应用程序中,对于同一组图像,我们同时具有gif和jpg图像.我在本地服务器中同时拥有gif和jpg图片.因此,我在MSPaint中打开了以下所有gif图像,并将其存储为.jpg.

In our application we have both gif and jpg images for the same set of images. I've both gif and jpg images in my local server. Hence I opened all the below gif images in MSPaint and stored it as .jpg.

Next_disabled.jpg
Next.jpg
Prev_disabled.jpg
上一页.jpg

Next_disabled.jpg
Next.jpg
Prev_disabled.jpg
Prev.jpg

然后,我将这些映像部署到存在静态内容的apache中,然后重新启动apache.然后问题解决了,图像显示正确.

Then I've deployed these images to apache where static content is present, followed by apache restart. Then the issue was resolved and the images are showing properly.

这篇关于JPEG图像未通过Apache Web服务器加载到IE11浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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