Possible Google mobile friendly issue
-
Hi,
Perhaps I’m going crazy, but I have a problem with Google “mobile friendly” test that I believe may be related to this great plugin.
I keep seeing on Webmaster Tools > Google Search Console > Mobile Usability report that several of my website pages are not mobile friendly. When I hit the button to “Test Live Page”, the test shows in green letters: Page is mobile friendly! And yet when I click on “Validate Fix” button, again, it quickly checks my pages and the result is no good.
I believe that Google Search Console tools are using the version of the page that was cached by Googlebot, while the “Test Live Page” button, as its name implies, is fetching the live page and therefore the functioning page.
Then very likely these cached HTML pages are invoking Autoptimize CSS files that no longer exist, and rendering the page CSS-less, which of course makes them not only not mobile-friendly, but not friendly in general.
The flow would be something like this:
1) Fresh HTML page is cached by Google. Autoptimize CSS files are good. Page is mobile friendly.
2) Time goes by, I make changes on my settings and delete Autoptimize cache, CSS files are then regenerated with another name.
3) Google tries to render pages using the cached HTML, which invokes Autoptimize CSS files that are no longer existent. Page is not mobile friendly.If my assumptions are right, I could of course keep asking Google to fetch my website again everyday. But that’s a chore, easy to forget. Also, several times when I did this, Google just did not replace cached pages, perhaps because it sees no significant differences in the HTML page.
So here is my question, or rather suggestion, for this plugin: Would it be possible that the CSS files generated by Autoptimize be named after the slug of the page, instead of the hash it currently uses? Like:
autoptimize_my-beautful-wordpress-page-title.css instead of
autoptimize_5d424338eec4bde7dbe8f3654ac3ea95.cssThen the CSS file name would be constant, a new file overwriting the old, but always available to King Googlebot.
But then, again, I may just be going nuts, and this whole issue is to be blamed on other factors, who knows?
Thank you again for this great plugin.
- The topic ‘Possible Google mobile friendly issue’ is closed to new replies.