问题原文
原帖链接 · Raphaël Balet · CC BY-SA 4.0
I'm working with angular and had added the assets folder as element to exclude from the search engine crawlers, into my robots.txt file.
But I now get the following error while testing the site health of my website.
1 issue with blocked internal resource in robots.txt
What should I do? Is it a good practice to remove such assets (I have a tons of images into it), or is it better to leave it like it.
已采纳解答
原帖链接 · Stephen Ostermiller · CC BY-SA 4.0
It is usually a good idea to allow the entire assets folder to be crawled.
Images
If you don't allow your images to be crawled, they won't be indexed in image search. Disallow images from crawling only if you don't want them indexed. If you have multiple sizes of the same image you might want Google to index only the largest size because larger images rank better. You could disallow your small images such as thumbnails.
CSS, JS, and fonts
You want Googlebot to be able to crawl anything needed to render your pages. If Googlebot can't render your pages correctly, there is a risk that your site will not get fully indexed, indexed incorrectly, or that Google will think that they layout isn't usable.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
