Digital Engine note · Saved from Facebook

Mobile content-first indexing: Dynamic Serving Don’t forget Vary

Save a working case that explains why HTTP's Vary: User-Agent may become an important cache signal when Dynamic Serving returns different HTML based on User-Agent.

Source note

This note preserves the original context of the Facebook post. Some tools, interfaces, and external links may have changed.

View the original posthttps://www.facebook.com/searchenginecommunity/posts/682384215832857
Mobile content-first indexed Facebook post with image

This post contains a working example related to mobile-first content indexing.

The website in the case uses Dynamic Serving, and the server will return different versions of HTML based on the User-Agent, but the URL remains the same.

This approach requires attention to whether the cache server knows that the response content will change with the User-Agent, so the case specifically checks the Vary: User-Agent HTTP Response Header.

If the cache only saves a copy of the HTML, it may mistakenly serve the desktop version to mobile users, or the mobile version to desktop users.

This content was published in 2020, and the policy background of mobile indexing may be different from today’s implementation environment.

The long-term caveat is that whenever the same URL returns different content based on request conditions, caching, crawling, and user experience must be examined together.

Keep exploring

Related reading

Article

Three core indicators of website experience - LCP, FID, CLS

Website experience indicators (Web Vitals) were proposed by Google in May 2020, with the aim of developing a set of UX measurement indicators suitable for all websites. This article introduces this project and various measurement methods.

Article

How Search Engines Work: Crawling

Crawling is the first step in search. A crawler starts with a URL, visits it, discovers more URLs, and repeats the cycle. The concept sounds simple, but it contains many important SEO details.

Article

Web Story⚡ - SEO’s next battleground

Web Stories (formerly AMP Stories) have an interface similar to real-life dynamics, which can improve the stickiness of the content and can be searched by search engines. In recent years, Web Stories have appeared in more search blocks, making Web Stories even more important to website traffic.