Google have announced that they will rank mobile-friendly sites higher (implying by comparison that non-mobile-friendly sites will be penalised).
Google describe 3 mobile-friendly techniques :
1. Responsive Web Design
2. Dynamic Serving (changing CSS/JS resources etc depending on user-agent)
3. Serving mobile content on a different URL (e.g. m.example.com).
In order to analyse for Responsive Web Design, Google say:
"Google’s algorithms should be able to automatically detect this setup if all Googlebot user agents are allowed to crawl the page and its assets (CSS, JavaScript, and images)."
The current robots.txt disallows /themes and /profiles, which means that Google's crawler will not be able to successfully analyse core themes, or custom themes that are part of an installation profile. This means that sites using themes in this way will be penalised as not being mobile-friendly.
Note that this is mitigated when the core aggregation mecanism is enabled because CSS files will go to the sites/* folder, which is not excluded by the robots.txt file.
Moreover, this won't happen in non fine-tuned installations where the static files are excluded by the HTTPd, such as when using some Nginx default configuration files that we can find all around the place (when the robots.txt gives a 404 error).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2364343-20.robots.txt.patch | 481 bytes | TomDude48 |
Comments
Comment #1
pounardComment #2
pounardComment #3
manarth commentedComment #4
pounardThanks for answering so fast. Take good care of this issue, this is yours now :)
Comment #5
dcam commentedThis is a duplicate of #2364343: Fix robots.txt to allow search engines access to CSS, JavaScript and image files which already has a 7.x patch.
Comment #6
pounardHum I searched for it in the search page, didn't manage to find it, neither in the Drupal.org search box nor Google! Glad you could point it to me, thank you.
Comment #7
TomDude48 commentedI combined patch #5 and #19 and added css and js files in the libraries folder.
Comment #8
winflyweb commentedGooglebot cannot access CSS and JS files