.htaccess - slider images loading twice after cache control -
i have use following code in .htaccess
file cache control in joomla site.
########## begin - etag optimization ## rule create etag files based on modification ## timestamp , size. ## note: may cause problems on server , may need remove fileetag mtime size # addoutputfilterbytype deprecated apache. use mod_filter in 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 , 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 facing problem.
now slider image loading 2 times before appearing. once image loaded again loads ( refresh ), other content loading correctly.
please me out.
i using dj-imageslider extension of joomla. slider not slide anything, show single image banner.
etags
difficult because take precedence caching in browsers. can change headers want, if etag
associated file same, caching never work how expect. in situations, should turn etag
headers off.
so unset etag
, can use following:
header unset etag
and remove this:
fileetag mtime size
Comments
Post a Comment