这些URI本身可以破坏您的索引。 A simple pair of parameters on an AJAX URI will breed like bunnies. Each can be unique and indexable.
Your index status will looks like a roller coaster – a stark climbing rise in the number of pages – followed by a gut-churning drop as Googlebot purges pages from their index.
To avoid this, add X-Robots noindex directives to URIs that load content asynchronously to the page. This will create cleaner technical signals and make Googlebot resources spent on understanding my site more effective.
Make a New Developer Ally
Developers are some of the best allies an SEO can have. Google Webmasters recognize this and have created a new web series focused on the code changes needed to make a discoverable site.
Looking for a place to start?查看 Make your Angular web apps discoverable 和 SEO codelab for developers.
Tuck & Roll, My Friends
In summary, the keys to SEO for Angular are:
Knowing the difference between HTML and DOM.
Delivering content at the right time and place.
Consistent, unique, and crawlable URLs.
Being aware of your script resources’ indexability, size, response time, and caching policies.
This is the part where we work together to get everybody’s site out there alive and well.
The best way to learn Angular is hands-on so if you’re reading this, keep calm and remember the ancient digital proverb:
It’s not yours until you break it.
Image Credits
In-Post Image #1: Created by author, May 2019 In-Post Image #2: Screenshot taken by author, April 2019 In-Post Image #3: Bartosz Góralewicz via Moz In-Post Image #4: Taken by Jennifer Holzman at i/o 2018 In-Post Image #5: Screenshot from Archive.org, 3 April 2019 In-Post Image #6: Created by author, May 2019 In-Post Image #7: Screenshot taken by author, March 2019 In-Post Image #8: Screenshot taken by author, March 2019 In-Post Image #9: Created by author, April 2019 In-Post Image #10: Screencap from Google Search and JavaScript Sites (Google I/O’19) In-Post Image #11: Screenshot of MDN Web Docs In-Post Image #12: User-centric Performance Metrics, Google Web Fundamentals In-Post Image #13: Screencap from Google Search and JavaScript Sites (Google I/O’19) In-Post Image #14: Screencap from Rendering on the Web: Performance Implications of Application Architecture (Google I/O ’19) In-Post Image #15: Screenshot taken by author, March 2018 In-Post Image #16: Glamorshot of incredibly handsome cat by author In-Post Image #17: Screenshot and chart creation by author, April 2018