滑块图像缓存控制后装载两次 [英] slider images loading twice after cache control

查看:156
本文介绍了滑块图像缓存控制后装载两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用以下code在我的的.htaccess 文件在我的Joomla站点缓存控制。

I have use following code in my .htaccess file for cache control in my joomla site.

########## Begin - ETag Optimization
## This rule will create an ETag for files based only on the modification
## timestamp and their size. 
## Note: It may cause problems on your server and you may need to remove it
FileETag MTime Size
# AddOutputFilterByType is now deprecated by Apache. Use mod_filter in the future.
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
# Enable expiration control
ExpiresActive On
# Default expiration: 1 month after request
ExpiresDefault "now plus 1 month"
# CSS and JS expiration: 1 month after request
ExpiresByType text/css "now plus 1 month"
ExpiresByType application/javascript "now plus 1 month"
ExpiresByType application/x-javascript "now plus 1 month"

# Image files expiration: 1 month after request
ExpiresByType image/bmp "now plus 1 month"
ExpiresByType image/gif "now plus 1 month"
ExpiresByType image/jpeg "now plus 1 month"
ExpiresByType image/jp2 "now plus 1 month"
ExpiresByType image/pipeg "now plus 1 month"
ExpiresByType image/png "now plus 1 month"
ExpiresByType image/svg+xml "now plus 1 month"
ExpiresByType image/tiff "now plus 1 month"
ExpiresByType image/vnd.microsoft.icon "now plus 1 month"
ExpiresByType image/x-icon "now plus 1 month"
ExpiresByType image/ico "now plus 1 month"
ExpiresByType image/icon "now plus 1 month"
ExpiresByType text/ico "now plus 1 month"
ExpiresByType application/ico "now plus 1 month"
ExpiresByType image/vnd.wap.wbmp "now plus 1 month"
ExpiresByType application/vnd.wap.wbxml "now plus 1 month"

高速缓存控制开始工作,但我面临的一个问题。

cache control started working but i am facing a problem.

现在我的滑盖图像加载两次出庭。一旦被载入图像,然后再次加载(就像刷新),但其他内容正确加载。

Now my slider image is loading two times before appearing. once image is loaded then it again loads ( just like refresh ), but other content is loading correctly.

请帮我了。

我使用Joomla的DJ-ImageSlider扩展。滑不滑任何东西,它只是显示一个单一的形象的一面旗帜。

I am using DJ-ImageSlider extension of joomla. slider does not slide anything, it just show a single image as a banner.

推荐答案

这是很难解决的距离,但也有少数的想法,你可以尝试。

It's difficult to troubleshoot at a distance, but a few ideas you could try.

首先确保您清除浏览器缓存和您的Joomla缓存开始一个干净的石板,并在下面的任何更改后,重复此步骤。

First make sure you are starting with a clean slate by clearing your browser cache and your Joomla cache, and repeat this step after any changes below.

如果问题仍然存在,尝试将扩展>模块管理> DJ-ImageSlider>高级,并更改缓存设置。

If problem persists, try going to extensions > module manager > DJ-ImageSlider > Advanced and changing the caching setting.

如果仍然没有喜悦,或许与缓存设置在系统中发挥>全局配置>缓存设置。

If still no joy, perhaps play with the cache settings in System > Global Configuration > Cache Settings.

祝你好运!

这篇关于滑块图像缓存控制后装载两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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