Leverage Browser Caching not working problem
-
Hello
I am using W3 total cache but i have a problem with caching and pagespeed. google is saying i should use Browser Caching not working problem and some examples of things not cached i get from google is
http://site.se/images/rss.png (expiration date has not been set)
http://site.se/…/themes/bk_bgtheme_jan13/images/back.jpg (expiration date has not been set)so what is the problem ?
.HTTACCESS
</IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType text/x-component A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType application/javascript A31536000 ExpiresByType text/javascript A31536000 ExpiresByType text/x-js A31536000 ExpiresByType text/html A3600 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/json A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/x-font-otf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/font-woff A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 </IfModule> <IfModule mod_deflate.c>SETTINGS I USE
Browser Cache – General Settings •Enable “set Last-Modified header” •Enable “set expires header” •Enable “set cache control header” •Disable “Set entity tag (eTag)” •Enable “set W3 Total Cache header” •Enable “HTTP (gzip) compression” •Disable “Prevent caching of objects after settings change” •Disable “Do not process 404 errors” Browser Cache – CSS & JS •Enable “set Last-Modified header” •Enable “Set expires header” •Expires header lifetime – 31536000 seconds (1 year) •Enable “Set cache control header” •Cache Control Policy: cache with max-age •Disable “set entity tag (eTag)” •Enable “Set W3 Total Cache header” •Enable “HTTP (gzip) compression” Browser Cache – HTML and XML •Enable “Set Last-Modified header” •Enable “Set expires header” •Expires header lifetime – 3600 seconds (1 hour) •Enable “Set cache control header” •Cache Control Policy: cache with max-age •Disable “Set entity tag (eTag)” •Enable “Set W3 Total Cache header” •Enable “HTTP (gzip) compression” Browser Cache – Media and other files •Enable “Set Last-Modified header” •Enable “Set expires header” •Expires header lifetime – 31536000 seconds (1 year) •Enable “Set cache control header” •Cache Control Policy – cache with max-age •Disable “Set the entity tag (eTag)” •Enable “Set W3 Total Cache header” •Enable HTTP (gzip) compression
The topic ‘Leverage Browser Caching not working problem’ is closed to new replies.