Open LeMoussel opened 7 years ago
Just small remark: http://joxi.net/a2Xan7bC1Zvx5A If trust google robots.txt Tester, google parses those robots.txt :)
For my test site (http://3.test.cocon.se/robots.txt), Google don't parse those robots.txt. In Search Console - robots.txt Tester, I have an 404 error.
I agree with you, if you copy HTML code
For optimize parsing, a first thing to do is to check if content is validated. For example Google check this HTML content invalid. <!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
Source: http://3.test.cocon.se/robots.txt
One solution would be to check if the content starts with a robots.txt directive. If not content is invalid and can't be parse.