问题原文
原帖链接 · anvd · CC BY-SA 3.0
This is the contents of my robots.txt file:
User-agent: *
Disallow: /static/*
Disallow: /templates/*
Disallow: /translations/*
Sitemap: https://xx.xxx.com/sitemap.xml
However I don't know why I am getting this error in Google Search Console:
Maybe due the static folder? So the question is, should I remove static folder from the robots?
已采纳解答
原帖链接 · grg · CC BY-SA 3.0
You shouldn't block Googlebot from accessing your CSS.
Blocked Resources Report - Search Console Help
JavaScript, CSS, and image files should be available to Googlebot so that it can see pages like an average user.
Updating our technical Webmaster Guidelines
Disallowing crawling of Javascript or CSS files in your site’s robots.txt directly harms how well our algorithms render and index your content and can result in suboptimal rankings.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
