Browser cache issue external site test
-
When I run one of my sites through WebPageTest.org, I get flagged for browser cache problems. Don’t really know why I’m seeing this …
Leverage browser caching of static assets: 48/100 FAILED - (3 seconds) - https://example.com/wp-content/cache/minify/586d0.default.include.e3da65.css FAILED - (3 seconds) - https://example.com/wp-content/cache/minify/586d0.default.include.a750ab.js FAILED - (3 seconds) - https://example.com/wp-content/cache/minify/586d0.default.include-footer.5c6b3c.js WARNING - (23.5 hours) - https://example.com/wp-content/uploads/2017/06/services-2.jpg WARNING - (23.5 hours) - https://example.com/wp-includes/js/wp-embed.min.js WARNING - (23.5 hours) - https://example.com/wp-content/plugins/cookie-notice/js/front.min.js
-
Could you please share the contents of your
wp-content/w3tc-config/master.php
file so I can check your settings?@gidomanders here it is …
<?php exit; ?>{ "version": "0.9.7", "cluster.messagebus.debug": false, "cluster.messagebus.enabled": false, "cluster.messagebus.sns.region": "", "cluster.messagebus.sns.api_key": "", "cluster.messagebus.sns.api_secret": "", "cluster.messagebus.sns.topic_arn": "", "dbcache.configuration_overloaded": false, "dbcache.debug": "0", "dbcache.enabled": "1", "dbcache.engine": "file", "dbcache.file.gc": "3600", "dbcache.file.locking": false, "dbcache.lifetime": "180", "dbcache.memcached.persistent": true, "dbcache.memcached.aws_autodiscovery": false, "dbcache.memcached.servers": [ "127.0.0.1:11211" ], "dbcache.memcached.username": "", "dbcache.memcached.password": "", "dbcache.redis.persistent": true, "dbcache.redis.servers": [ "127.0.0.1:6379" ], "dbcache.redis.password": "", "dbcache.redis.dbid": 0, "dbcache.use_filters": false, "dbcache.reject.constants": [ "APP_REQUEST", "DOING_CRON", "DONOTCACHEDB", "SHORTINIT", "XMLRPC_REQUEST" ], "dbcache.reject.cookie": [], "dbcache.reject.logged": "1", "dbcache.reject.sql": [ "gdsr_", "wp_rg_", "_wp_session_" ], "dbcache.reject.uri": [ "" ], "dbcache.reject.words": [ "^\\s*insert\\b", "^\\s*delete\\b", "^\\s*update\\b", "^\\s*replace\\b", "^\\s*create\\b", "^\\s*alter\\b", "^\\s*show\\b", "^\\s*set\\b", "\\bautoload\\s+=\\s+'yes'", "\\bsql_calc_found_rows\\b", "\\bfound_rows\\(\\)" ], "objectcache.configuration_overloaded": false, "objectcache.enabled": "1", "objectcache.debug": "0", "objectcache.enabled_for_wp_admin": true, "objectcache.fallback_transients": true, "objectcache.engine": "file", "objectcache.file.gc": 3600, "objectcache.file.locking": false, "objectcache.memcached.servers": [ "127.0.0.1:11211" ], "objectcache.memcached.persistent": true, "objectcache.memcached.aws_autodiscovery": false, "objectcache.memcached.username": "", "objectcache.memcached.password": "", "objectcache.redis.persistent": true, "objectcache.redis.servers": [ "127.0.0.1:6379" ], "objectcache.redis.password": "", "objectcache.redis.dbid": 0, "objectcache.groups.global": [ "users", "userlogins", "usermeta", "user_meta", "site-transient", "site-options", "site-lookup", "blog-lookup", "blog-details", "rss", "global-posts" ], "objectcache.groups.nonpersistent": [ "comment", "counts", "plugins" ], "objectcache.lifetime": 180, "objectcache.purge.all": false, "pgcache.configuration_overloaded": false, "pgcache.enabled": "1", "pgcache.comment_cookie_ttl": "1800", "pgcache.debug": "0", "pgcache.engine": "file_generic", "pgcache.file.gc": "3600", "pgcache.file.nfs": true, "pgcache.file.locking": false, "pgcache.lifetime": 3600, "pgcache.memcached.servers": [ "127.0.0.1:11211" ], "pgcache.memcached.persistent": true, "pgcache.memcached.aws_autodiscovery": false, "pgcache.memcached.username": "", "pgcache.memcached.password": "", "pgcache.redis.persistent": true, "pgcache.redis.servers": [ "127.0.0.1:6379" ], "pgcache.redis.password": "", "pgcache.redis.dbid": 0, "pgcache.cache.query": false, "pgcache.cache.home": "1", "pgcache.cache.feed": "0", "pgcache.cache.nginx_handle_xml": false, "pgcache.cache.ssl": "1", "pgcache.cache.404": "0", "pgcache.cache.headers": [ "Last-Modified", "Content-Type", "X-Pingback", "P3P", "Link" ], "pgcache.compatibility": "1", "pgcache.remove_charset": "0", "pgcache.accept.uri": [ "sitemap(_index)?\\.xml(\\.gz)?", "([a-z0-9_\\-]+)?sitemap\\.xsl", "[a-z0-9_\\-]+-sitemap([0-9]+)?\\.xml(\\.gz)?" ], "pgcache.accept.files": [ "wp-comments-popup.php", "wp-links-opml.php", "wp-locations.php" ], "pgcache.accept.qs": [ "?ver=1.12.4" ], "pgcache.late_init": "0", "pgcache.late_caching": "0", "pgcache.mirrors.enabled": "0", "pgcache.mirrors.home_urls": [ "" ], "pgcache.reject.front_page": "0", "pgcache.reject.logged": "1", "pgcache.reject.logged_roles": "1", "pgcache.reject.roles": [ "administrator", "editor" ], "pgcache.reject.uri": [ "wp-.*\\.php", "index\\.php" ], "pgcache.reject.categories": [], "pgcache.reject.tags": [], "pgcache.reject.authors": [], "pgcache.reject.custom": [], "pgcache.reject.ua": [ "" ], "pgcache.reject.cookie": [ "wptouch_switch_toggle" ], "pgcache.reject.request_head": false, "pgcache.purge.front_page": "0", "pgcache.purge.home": "1", "pgcache.purge.post": "1", "pgcache.purge.comments": "0", "pgcache.purge.author": "0", "pgcache.purge.terms": "0", "pgcache.purge.archive.daily": "0", "pgcache.purge.archive.monthly": "0", "pgcache.purge.archive.yearly": "0", "pgcache.purge.feed.blog": "1", "pgcache.purge.feed.comments": "0", "pgcache.purge.feed.author": "0", "pgcache.purge.feed.terms": "0", "pgcache.purge.feed.types": [ "rss2" ], "pgcache.purge.postpages_limit": "10", "pgcache.purge.pages": [ "" ], "pgcache.purge.sitemap_regex": "([a-z0-9_\\-]*?)sitemap([a-z0-9_\\-]*)?\\.xml", "pgcache.prime.enabled": "0", "pgcache.prime.interval": "900", "pgcache.prime.limit": "10", "pgcache.prime.sitemap": "", "pgcache.prime.post.enabled": "0", "pgcache.rest": "", "pgcache.cookiegroups.enabled": false, "pgcache.cookiegroups.groups": { "mobile": { "enabled": false, "cache": true, "cookies": [ "wptouch-pro-view=mobile", "wptouch-pro-cache-state=mobile" ] }, "loggedin": { "enabled": false, "cache": true, "cookies": [ "wordpress_logged_in_.*" ] }, "subscribers": { "enabled": false, "cache": true, "cookies": [ "role=subscriber", "role=member" ] } }, "stats.enabled": "0", "minify.configuration_overloaded": false, "minify.enabled": "1", "minify.auto": "0", "minify.debug": "0", "minify.engine": "file", "minify.error.notification": "", "minify.file.gc": "86400", "minify.file.nfs": true, "minify.file.locking": false, "minify.memcached.servers": [ "127.0.0.1:11211" ], "minify.memcached.persistent": true, "minify.memcached.aws_autodiscovery": false, "minify.memcached.username": "", "minify.memcached.password": "", "minify.redis.persistent": true, "minify.redis.servers": [ "127.0.0.1:6379" ], "minify.redis.password": "", "minify.redis.dbid": 0, "minify.rewrite": "1", "minify.options": [], "minify.symlinks": [], "minify.lifetime": "86400", "minify.upload": true, "minify.html.enable": "0", "minify.html.engine": "html", "minify.html.reject.feed": "0", "minify.html.inline.css": "0", "minify.html.inline.js": "0", "minify.html.strip.crlf": "0", "minify.html.comments.ignore": [ "google_ad_", "RSPEAK_" ], "minify.css.combine": "0", "minify.css.enable": "1", "minify.css.engine": "css", "minify.css.http2push": "1", "minify.css.strip.comments": "0", "minify.css.strip.crlf": "0", "minify.css.embed": false, "minify.css.imports": "", "minify.css.groups": { "586d0": { "default": { "include": { "files": [ "wp-content\/cache\/minify\/586d0.default.include.f0eb16.css", "wp-content\/themes\/wp-velux-theme-develop\/style.css", "wp-content\/themes\/wp-velux-theme-develop\/assets\/css\/font-awesome.min.css", "wp-content\/themes\/wp-velux-theme-develop\/assets\/font-awesome\/css\/font-awesome.min.css", "wp-content\/plugins\/add-to-any\/addtoany.min.css", "wp-content\/cache\/minify\/586d0.default.include.d39c8c.css", "wp-content\/cache\/minify\/586d0.default.include.742ba9.css", "wp-content\/cache\/minify\/586d0.default.include.38308b.css", "wp-content\/plugins\/cookie-notice\/css\/front.min.css", "wp-content\/cache\/minify\/586d0.default.include.175562.css", "wp-content\/cache\/minify\/586d0.default.include.359c6d.css", "wp-content\/cache\/minify\/586d0.default.include.e3da65.css", "wp-content\/cache\/minify\/586d0.default.include.8a0f14.css" ] } } } }, "minify.js.http2push": "1", "minify.js.enable": "1", "minify.js.engine": "js", "minify.js.combine.header": "0", "minify.js.header.embed_type": "nb-async", "minify.js.combine.body": "0", "minify.js.body.embed_type": "blocking", "minify.js.combine.footer": "0", "minify.js.footer.embed_type": "blocking", "minify.js.strip.comments": "0", "minify.js.strip.crlf": "0", "minify.js.groups": { "586d0": { "default": { "include": { "files": [ "wp-content\/themes\/primer\/assets\/js\/navigation.min.js", "wp-content\/plugins\/wordfence\/js\/admin.ajaxWatcher.js", "wp-content\/plugins\/bj-lazy-load\/js\/bj-lazy-load.min.js", "wp-content\/cache\/minify\/586d0.default.include-footer.a1b083.js" ] }, "include-footer": { "files": [ "wp-content\/plugins\/autoptimize\/classes\/static\/toolbar.js", "wp-content\/plugins\/contact-form-7\/includes\/js\/scripts.js", "wp-includes\/js\/gooloc-csp.js", "wp-content\/cache\/minify\/586d0.default.include-footer.366b14.js", "wp-content\/cache\/minify\/586d0.default.include-footer.4eae2c.js", "wp-content\/cache\/minify\/586d0.default.include.a750ab.js", "wp-content\/cache\/minify\/586d0.default.include-footer.2b6eed.js" ] } } } }, "minify.yuijs.path.java": "java", "minify.yuijs.path.jar": "yuicompressor.jar", "minify.yuijs.options.line-break": 5000, "minify.yuijs.options.nomunge": false, "minify.yuijs.options.preserve-semi": false, "minify.yuijs.options.disable-optimizations": false, "minify.yuicss.path.java": "java", "minify.yuicss.path.jar": "yuicompressor.jar", "minify.yuicss.options.line-break": 5000, "minify.ccjs.path.java": "java", "minify.ccjs.path.jar": "compiler.jar", "minify.ccjs.options.compilation_level": "SIMPLE_OPTIMIZATIONS", "minify.ccjs.options.formatting": "", "minify.csstidy.options.remove_bslash": true, "minify.csstidy.options.compress_colors": false, "minify.csstidy.options.compress_font-weight": false, "minify.csstidy.options.lowercase_s": false, "minify.csstidy.options.optimise_shorthands": 0, "minify.csstidy.options.remove_last_;": false, "minify.csstidy.options.remove_space_before_important": false, "minify.csstidy.options.case_properties": 1, "minify.csstidy.options.sort_properties": false, "minify.csstidy.options.sort_selectors": false, "minify.csstidy.options.merge_selectors": 0, "minify.csstidy.options.discard_invalid_selectors": false, "minify.csstidy.options.discard_invalid_properties": false, "minify.csstidy.options.css_level": "CSS3.0", "minify.csstidy.options.preserve_css": false, "minify.csstidy.options.timestamp": false, "minify.csstidy.options.template": "highest_compression", "minify.htmltidy.options.clean": false, "minify.htmltidy.options.hide-comments": true, "minify.htmltidy.options.wrap": 0, "minify.reject.logged": "0", "minify.reject.ua": [ "" ], "minify.reject.uri": [ "" ], "minify.reject.files.js": [ "" ], "minify.reject.files.css": [ "" ], "minify.cache.files": [ "" ], "minify.cache.files_regexp": false, "cdn.configuration_overloaded": false, "cdn.enabled": "0", "cdn.debug": "0", "cdn.engine": "maxcdn", "cdn.uploads.enable": true, "cdn.includes.enable": true, "cdn.includes.files": "*.css;*.js;*.gif;*.png;*.jpg;*.xml", "cdn.theme.enable": true, "cdn.theme.files": "*.css;*.js;*.gif;*.png;*.jpg;*.ico;*.ttf;*.otf,*.woff,*.less", "cdn.minify.enable": true, "cdn.custom.enable": true, "cdn.custom.files": [ "favicon.ico", "{wp_content_dir}\/gallery\/*", "{wp_content_dir}\/uploads\/avatars\/*", "{plugins_dir}\/wordpress-seo\/css\/xml-sitemap.xsl", "{plugins_dir}\/wp-minify\/min*", "{plugins_dir}\/*.js", "{plugins_dir}\/*.css", "{plugins_dir}\/*.gif", "{plugins_dir}\/*.jpg", "{plugins_dir}\/*.png" ], "cdn.import.files": false, "cdn.queue.interval": 900, "cdn.queue.limit": 25, "cdn.force.rewrite": false, "cdn.autoupload.enabled": false, "cdn.autoupload.interval": 3600, "cdn.canonical_header": false, "cdn.admin.media_library": false, "cdn.cors_header": true, "cdn.ftp.host": "", "cdn.ftp.type": "", "cdn.ftp.user": "", "cdn.ftp.pass": "", "cdn.ftp.path": "", "cdn.ftp.pasv": false, "cdn.ftp.domain": [], "cdn.ftp.ssl": "auto", "cdn.google_drive.client_id": "", "cdn.google_drive.refresh_token": "", "cdn.google_drive.folder.id": "", "cdn.google_drive.folder.title": "", "cdn.google_drive.folder.url": "", "cdn.highwinds.account_hash": "", "cdn.highwinds.api_token": "", "cdn.highwinds.host.hash_code": "", "cdn.highwinds.host.domains": [], "cdn.highwinds.ssl": "auto", "cdn.s3.key": "", "cdn.s3.secret": "", "cdn.s3.bucket": "", "cdn.s3.bucket.location": "us-east-1", "cdn.s3.cname": [], "cdn.s3.ssl": "auto", "cdn.s3_compatible.api_host": "auto", "cdn.cf.key": "", "cdn.cf.secret": "", "cdn.cf.bucket": "", "cdn.cf.bucket.location": "us-east-1", "cdn.cf.id": "", "cdn.cf.cname": [], "cdn.cf.ssl": "auto", "cdn.cf2.key": "", "cdn.cf2.secret": "", "cdn.cf2.id": "", "cdn.cf2.cname": [], "cdn.cf2.ssl": "", "cdn.rscf.user": "", "cdn.rscf.key": "", "cdn.rscf.location": "us", "cdn.rscf.container": "", "cdn.rscf.cname": [], "cdn.rscf.ssl": "auto", "cdn.rackspace_cdn.user_name": "", "cdn.rackspace_cdn.api_key": "", "cdn.rackspace_cdn.region": "", "cdn.rackspace_cdn.service.access_url": "", "cdn.rackspace_cdn.service.id": "", "cdn.rackspace_cdn.service.name": "", "cdn.rackspace_cdn.service.protocol": "http", "cdn.rackspace_cdn.domains": [], "cdn.azure.user": "", "cdn.azure.key": "", "cdn.azure.container": "", "cdn.azure.cname": [], "cdn.azure.ssl": "auto", "cdn.mirror.domain": [], "cdn.mirror.ssl": "auto", "cdn.limelight.short_name": "", "cdn.limelight.username": "", "cdn.limelight.api_key": "", "cdn.limelight.host.domains": [], "cdn.limelight.ssl": "auto", "cdn.maxcdn.authorization_key": "", "cdn.maxcdn.domain": [], "cdn.maxcdn.ssl": "auto", "cdn.maxcdn.zone_id": 0, "cdn.cotendo.username": "", "cdn.cotendo.password": "", "cdn.cotendo.zones": [], "cdn.cotendo.domain": [], "cdn.cotendo.ssl": "auto", "cdn.akamai.username": "", "cdn.akamai.password": "", "cdn.akamai.email_notification": [], "cdn.akamai.action": "invalidate", "cdn.akamai.zone": "production", "cdn.akamai.domain": [], "cdn.akamai.ssl": "auto", "cdn.edgecast.account": "", "cdn.edgecast.token": "", "cdn.edgecast.domain": [], "cdn.edgecast.ssl": "auto", "cdn.att.account": "", "cdn.att.token": "", "cdn.att.domain": [], "cdn.att.ssl": "auto", "cdn.stackpath.authorization_key": "", "cdn.stackpath.domain": [], "cdn.stackpath.ssl": "auto", "cdn.stackpath.zone_id": 0, "cdn.reject.admins": false, "cdn.reject.logged_roles": false, "cdn.reject.roles": [], "cdn.reject.ua": [], "cdn.reject.uri": [], "cdn.reject.files": [ "{uploads_dir}\/wpcf7_captcha\/*", "{uploads_dir}\/imagerotator.swf", "{plugins_dir}\/wp-fb-autoconnect\/facebook-platform\/channel.html" ], "cdn.reject.ssl": false, "cdnfsd.enabled": false, "cdnfsd.engine": "", "cdnfsd.debug": false, "cdnfsd.cloudfront.access_key": "", "cdnfsd.cloudfront.secret_key": "", "cdnfsd.cloudfront.distribution_id": "", "cdnfsd.limelight.short_name": "", "cdnfsd.limelight.username": "", "cdnfsd.limelight.api_key": "", "cdnfsd.maxcdn.api_key": "", "cdnfsd.maxcdn.zone_id": 0, "cdnfsd.stackpath.api_key": "", "cdnfsd.stackpath.zone_id": 0, "varnish.configuration_overloaded": false, "varnish.enabled": "0", "varnish.debug": "0", "varnish.servers": [ "" ], "browsercache.configuration_overloaded": false, "browsercache.enabled": "1", "browsercache.rewrite": "0", "browsercache.no404wp": "0", "browsercache.no404wp.exceptions": [ "robots\\.txt", "[a-z0-9_\\-]*sitemap[a-z0-9_\\-]*\\.(xml|xsl|html)(\\.gz)?" ], "browsercache.cssjs.last_modified": "1", "browsercache.cssjs.compression": "1", "browsercache.cssjs.expires": "1", "browsercache.cssjs.lifetime": "31536000", "browsercache.cssjs.nocookies": "0", "browsercache.cssjs.cache.control": "1", "browsercache.cssjs.cache.policy": "cache_public_maxage", "browsercache.cssjs.etag": "1", "browsercache.cssjs.w3tc": "1", "browsercache.cssjs.replace": "0", "browsercache.cssjs.querystring": "1", "browsercache.html.compression": "1", "browsercache.html.last_modified": "1", "browsercache.html.expires": "1", "browsercache.html.lifetime": "3600", "browsercache.html.cache.control": "1", "browsercache.html.cache.policy": "cache_public_maxage", "browsercache.html.etag": "1", "browsercache.html.w3tc": "1", "browsercache.html.replace": false, "browsercache.other.last_modified": "1", "browsercache.other.compression": "1", "browsercache.other.expires": "1", "browsercache.other.lifetime": "31536000", "browsercache.other.nocookies": "0", "browsercache.other.cache.control": "1", "browsercache.other.cache.policy": "cache_public_maxage", "browsercache.other.etag": "1", "browsercache.other.w3tc": "1", "browsercache.other.replace": "0", "browsercache.other.querystring": "1", "browsercache.replace.exceptions": [ "" ], "browsercache.security.session.cookie_httponly": "", "browsercache.security.session.cookie_secure": "", "browsercache.security.session.use_only_cookies": "", "browsercache.hsts": "0", "browsercache.security.hsts.directive": "maxage", "browsercache.security.xfo": "1", "browsercache.security.xfo.directive": "same", "browsercache.security.xfo.allow": "", "browsercache.security.xss": "1", "browsercache.security.xss.directive": "block", "browsercache.security.xcto": "0", "browsercache.security.pkp": "0", "browsercache.security.pkp.pin": "", "browsercache.security.pkp.pin.backup": "", "browsercache.security.pkp.extra": "maxage", "browsercache.security.pkp.report.url": "", "browsercache.security.pkp.report.only": "0", "browsercache.security.referrer.policy": "1", "browsercache.security.referrer.policy.directive": "0", "browsercache.security.csp": "0", "browsercache.security.csp.base": "", "browsercache.security.csp.frame": "", "browsercache.security.csp.connect": "", "browsercache.security.csp.font": "", "browsercache.security.csp.script": "", "browsercache.security.csp.style": "", "browsercache.security.csp.img": "", "browsercache.security.csp.media": "", "browsercache.security.csp.object": "", "browsercache.security.csp.plugin": "", "browsercache.security.csp.form": "", "browsercache.security.csp.frame.ancestors": "", "browsercache.security.csp.sandbox": "", "browsercache.security.csp.default": "", "mobile.configuration_overloaded": false, "mobile.enabled": false, "mobile.rgroups": { "high": { "theme": "", "enabled": false, "redirect": "", "agents": [ "android", "mobi", "bada", "incognito", "kindle", "maemo", "opera\\ mini", "s8000", "series60", "ucbrowser", "ucweb", "webmate", "webos" ] }, "low": { "theme": "", "enabled": false, "redirect": "", "agents": [ "2\\.0\\ mmp", "240x320", "alcatel", "amoi", "asus", "au\\-mic", "audiovox", "avantgo", "benq", "bird", "blackberry", "blazer", "cdm", "cellphone", "danger", "ddipocket", "docomo", "dopod", "elaine\/3\\.0", "ericsson", "eudoraweb", "fly", "haier", "hiptop", "hp\\.ipaq", "htc", "huawei", "i\\-mobile", "iemobile", "iemobile\/7", "iemobile\/9", "j\\-phone", "kddi", "konka", "kwc", "kyocera\/wx310k", "lenovo", "lg", "lg\/u990", "lge\\ vx", "midp", "midp\\-2\\.0", "mmef20", "mmp", "mobilephone", "mot\\-v", "motorola", "msie\\ 10\\.0", "netfront", "newgen", "newt", "nintendo\\ ds", "nintendo\\ wii", "nitro", "nokia", "novarra", "o2", "openweb", "opera\\ mobi", "opera\\.mobi", "p160u", "palm", "panasonic", "pantech", "pdxgw", "pg", "philips", "phone", "playbook", "playstation\\ portable", "portalmmm", "\\bppc\\b", "proxinet", "psp", "qtek", "sagem", "samsung", "sanyo", "sch", "sch\\-i800", "sec", "sendo", "sgh", "sharp", "sharp\\-tq\\-gx10", "small", "smartphone", "softbank", "sonyericsson", "sph", "symbian", "symbian\\ os", "symbianos", "toshiba", "treo", "ts21i\\-10", "up\\.browser", "up\\.link", "uts", "vertu", "vodafone", "wap", "willcome", "windows\\ ce", "windows\\.ce", "winwap", "xda", "xoom", "zte" ] } }, "referrer.configuration_overloaded": false, "referrer.enabled": false, "referrer.rgroups": { "search_engines": { "theme": "", "enabled": false, "redirect": "", "referrers": [ "google\\.com", "yahoo\\.com", "bing\\.com", "ask\\.com", "msn\\.com" ] } }, "common.support": "", "common.track_usage": "1", "common.tweeted": false, "config.check": "1", "config.path": "", "widget.latest.items": 3, "widget.latest_news.items": 5, "widget.pagespeed.enabled": "1", "widget.pagespeed.key": "AIzaSyCLUpq0r66LPaunJkfe80LTf9CvmD-XgsU", "widget.pagespeed.key.restrict.referrer": "", "widget.pagespeed.show_in_admin_bar": "1", "timelimit.email_send": 180, "timelimit.varnish_purge": 300, "timelimit.cache_flush": 600, "timelimit.cache_gc": 600, "timelimit.cdn_upload": 600, "timelimit.cdn_delete": 300, "timelimit.cdn_purge": 300, "timelimit.cdn_import": 600, "timelimit.cdn_test": 300, "timelimit.cdn_container_create": 300, "timelimit.domain_rename": 120, "timelimit.minify_recommendations": 600, "common.instance_id": 1376438865, "common.force_master": true, "extensions.active": { "fragmentcache": "w3-total-cache\/Extension_FragmentCache_Plugin.php", "newrelic": "w3-total-cache\/Extension_NewRelic_Plugin.php", "swarmify": "w3-total-cache\/Extension_Swarmify_Plugin.php", "wordpress-seo": "w3-total-cache\/Extension_WordPressSeo_Plugin.php" }, "extensions.active_frontend": { "wordpress-seo": "*" }, "plugin.license_key": "", "plugin.type": "", "cdn.netdna.alias": "", "cdn.netdna.consumerkey": "", "cdn.netdna.consumersecret": "", "cdn.netdna.authorization_key": "", "cdn.netdna.domain": [], "cdn.netdna.ssl": "auto", "cdn.netdna.zone_id": 0, "common.edge": false, "fragmentcache": { "engine": "file", "lifetime": "180", "file.gc": "3600", "groups": "" }, "newrelic": { "accept.logged_roles": "1", "accept.roles": [ "administrator", "editor" ] }, "pgcache.bad_behavior_path": "" }
Your settings seem fine to me. Could you share the contents of your
.htaccess
file so I can check if there’s something in there that needs to be changed?3s? that indeed is probably the notorious WP Super Cache entry in .htaccess playing up ??
@gidomanders here it is …
# BEGIN SECURITY SECTION # protect htaccess file... <files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all satisfy all </files> # protect wp-config file... <files wp-config.php> order allow,deny deny from all </files> # prevents directory browsing... Options All -Indexes # block hotlinking... and redirect from www to non-www RewriteEngine on RewriteCond %{HTTPS_HOST} ^www\.example\.com$ RewriteRule ^/?$ "https\:\/\/example\.com\/" [R=301,L] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?example.com [NC] RewriteRule \.(jpg|jpeg|png|gif|svg)$ - [NC,F,L] # END SECURITY SECTION # BEGIN SPEED SECTION <IfModule pagespeed_module> ModPagespeed on ModPagespeedEnableFilters extend_cache,collapse_whitespace </IfModule> <filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=84600, public" </filesMatch> # Set Expires Headers ... <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType text/css "access plus 1 month" ExpiresByType application/pdf "access plus 1 month" ExpiresByType text/x-javascript "access plus 1 month" ExpiresByType application/x-shockwave-flash "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" ExpiresDefault "access plus 2 days" </IfModule> # END SPEED SECTION # content security policy <IfModule mod_headers.c> # Header set Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' 'sha256-ZuJ8F552jb/CKHfMrtcdpvf3Vabg2HZDJ+P+dMtQ7Hc=' 'sha256-UehdvtNjdcQQwytl17l5r4gYbUAnag+reqrPOIdzm8c=' 'sha256-s2ifXdhRdwOyZ0XnFWacgNCEWktmdv0hSP8C2l0D3pM=' 'sha256-VFYz8FDBxifxpVivIkQ9GGOH7erGvfkiojXngXa6544=' 'sha256-KoZvlNi6WIlva5SMPsgkZKuz3pwSCUhpugmi7saPqak=' 'sha256-kbLORoPwKNedVpNnMTajHXftFdbFZrlsygNJ3pqR10A=' 'sha256-Ax4mwsqGKcHUHOcsuXJeMZVY4oi6GrTo8NeGNNHPHAg=' 'sha256-EREBp3q6G2/csy16ZYYVZvQ76xH2CdRpcJAz4EgFi3s=' 'sha256-xWRqIwZZGalJlSTTtw+pVWbi+ZZ5rUktkh0sLynbaJI=' 'sha256-siLR8D5Yb3cU1U3Zv+gWxaOahEV+qnu1IgVqkeG0Ut4=' 'sha256-uxSnAqt5uUtKOsB9/MoqKGKxlO1N8GsU9bn/WIHLKwE=' 'sha256-vaMRYoI1Vwmmr8wZJugyY4uTrqpA/HLkkIQPVadEtDQ=' www.remarpro.com api.w.org s.w.org www.google-analytics.com; object-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' www.google-analytics.com *.gravatar.com data:; media-src 'self'; child-src 'self'; font-src 'self' data:; connect-src 'self'; form-action 'self'; report-uri https://example.com/parsethis.php" </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_USER_AGENT} libwww-perl.* RewriteRule .* – [F,L] </IfModule> # Wordfence WAF <Files ".user.ini"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> </Files> # END Wordfence WAF # BEGIN W3TC Browser Cache <IfModule mod_mime.c> AddType text/css .css AddType text/x-component .htc AddType application/x-javascript .js AddType application/javascript .js2 AddType text/javascript .js3 AddType text/x-js .js4 AddType text/html .html .htm AddType text/richtext .rtf .rtx AddType image/svg+xml .svg AddType text/plain .txt AddType text/xsd .xsd AddType text/xsl .xsl AddType text/xml .xml AddType video/asf .asf .asx .wax .wmv .wmx AddType video/avi .avi AddType image/bmp .bmp AddType application/java .class AddType video/divx .divx AddType application/msword .doc .docx AddType application/vnd.ms-fontobject .eot AddType application/x-msdownload .exe AddType image/gif .gif AddType application/x-gzip .gz .gzip AddType image/x-icon .ico AddType image/jpeg .jpg .jpeg .jpe AddType image/webp .webp AddType application/json .json AddType application/vnd.ms-access .mdb AddType audio/midi .mid .midi AddType video/quicktime .mov .qt AddType audio/mpeg .mp3 .m4a AddType video/mp4 .mp4 .m4v AddType video/mpeg .mpeg .mpg .mpe AddType application/vnd.ms-project .mpp AddType application/x-font-otf .otf AddType application/vnd.ms-opentype ._otf AddType application/vnd.oasis.opendocument.database .odb AddType application/vnd.oasis.opendocument.chart .odc AddType application/vnd.oasis.opendocument.formula .odf AddType application/vnd.oasis.opendocument.graphics .odg AddType application/vnd.oasis.opendocument.presentation .odp AddType application/vnd.oasis.opendocument.spreadsheet .ods AddType application/vnd.oasis.opendocument.text .odt AddType audio/ogg .ogg AddType application/pdf .pdf AddType image/png .png AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx AddType audio/x-realaudio .ra .ram AddType image/svg+xml .svg .svgz AddType application/x-shockwave-flash .swf AddType application/x-tar .tar AddType image/tiff .tif .tiff AddType application/x-font-ttf .ttf .ttc AddType application/vnd.ms-opentype ._ttf AddType audio/wav .wav AddType audio/wma .wma AddType application/vnd.ms-write .wri AddType application/font-woff .woff AddType application/font-woff2 .woff2 AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw AddType application/zip .zip </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 image/webp 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/font-woff2 A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 </IfModule> <IfModule mod_deflate.c> <IfModule mod_setenvif.c> BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html </IfModule> AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel <IfModule mod_mime.c> # DEFLATE by extension AddOutputFilter DEFLATE js css htm html xml </IfModule> </IfModule> <FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$"> FileETag MTime Size <IfModule mod_headers.c> Header set Pragma "public" Header append Cache-Control "public" Header set X-Powered-By "W3 Total Cache/0.9.7" </IfModule> </FilesMatch> <FilesMatch "\.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$"> FileETag MTime Size <IfModule mod_headers.c> Header append Vary User-Agent env=!dont-vary Header set Pragma "public" Header append Cache-Control "public" Header set X-Powered-By "W3 Total Cache/0.9.7" </IfModule> </FilesMatch> <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$"> FileETag MTime Size <IfModule mod_headers.c> Header set Pragma "public" Header append Cache-Control "public" Header set X-Powered-By "W3 Total Cache/0.9.7" </IfModule> </FilesMatch> <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|WEBP|JSON|MDB|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$"> FileETag None <IfModule mod_headers.c> Header unset ETag Header unset Last-Modified </IfModule> </FilesMatch> <IfModule mod_headers.c> Header always append X-Frame-Options "SAMEORIGIN" Header set X-XSS-Protection "1; mode=block" Header set Referrer-Policy "" </IfModule> # END W3TC Browser Cache # BEGIN W3TC Page Cache core <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^ - [E=W3TC_QUERY_STRING:%{QUERY_STRING}] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.*?&|)\?ver\=1\.12\.4(&.*|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%2] RewriteCond %{ENV:W3TC_QUERY_STRING} ^&+$ RewriteRule ^ - [E=W3TC_QUERY_STRING] RewriteCond %{HTTPS} =on RewriteRule .* - [E=W3TC_SSL:_ssl] RewriteCond %{SERVER_PORT} =443 RewriteRule .* - [E=W3TC_SSL:_ssl] RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC] RewriteRule .* - [E=W3TC_SSL:_ssl] RewriteCond %{HTTP:Accept-Encoding} gzip RewriteRule .* - [E=W3TC_ENC:_gzip] RewriteCond %{HTTP_COOKIE} w3tc_preview [NC] RewriteRule .* - [E=W3TC_PREVIEW:_preview] RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{ENV:W3TC_QUERY_STRING} ="" RewriteCond %{REQUEST_URI} \/$ RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC] RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache) [NC] RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -F RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L] </IfModule> # END W3TC Page Cache core # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
I think it might work if you remove the SPEED SECTION. PageSpeed module might be conflicting in this case.
@gidomanders I will try that and report back!
Very surprising. After removing the Speed section, the number of browser cache issues (my previous post) went from 20 down to 3. And our Google PageSpeed score went from 94/88 up to 94/92 (mobile/desktop).
Clearly we need to review our code. Thank you for spotting that!
- The topic ‘Browser cache issue external site test’ is closed to new replies.