Bots not seeing files as concatenated?
-
Recently, many CSS and JS assets on our live site began appearing individually in our Google PageSpeed reports, when most of them were supposed to be concatenated and minified by W3TC (manual settings). Our PageSpeed score is halved and our GTmetrix load time has doubled.
I checked a staging version of our site in PageSpeed and GTmetrix, and it’s fine: the files show up as concatenated and minified. I tried the live site in Chrome with Lighthouse, and it’s fine also. And I cross-checked this by inspecting the html head with Chrome developer tools: it requests the appropriate concatenated and minified files. But when I analyze the live site in PageSpeed and GTmetrix, they receive all the JS and CSS as individual files, not concatenated.
We use W3TC with Cloudflare and CacheWall. Initially suspecting a problem with incorrect files cached, I tried clearing the cache in all three and turning on dev mode in Cloudflare and CacheWall to bypass the cache. No luck, and I can’t even imagine why the cache would send different files to different viewers anyway. There doesn’t seem to be a setting in W3TC to show non-concatenated files to bots (which is how I’m presuming it sees PageSpeed and GTmetrix).
I’ve even let the site sit over the weekend in case something needed to propagate or work itself out. And Googling my issue yields nothing. I’m running out of debugging ideas and concerned about PageSpeed effects on our search rankings.
Do you know why PageSpeed and GTmetrix could see the site differently than my browser, with the measures I’ve described in place?
The page I need help with: [log in to see the link]
- The topic ‘Bots not seeing files as concatenated?’ is closed to new replies.