Patent ID: 11962665
Assignee: CLOUDFLARE, INC.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. A non-transitory machine-readable storage medium that provides instructions that, if executed by a processor of a server, will cause said processor to perform operations comprising:
receiving, from a first client device, a first request for a first document;
determining, from the first request, that the first client device is a mobile client device;
determining that the first request includes a URL matching a mobile redirect URL pattern;
retrieving a canonical version of the first document;
analyzing the canonical version of the first document to determine whether the canonical version of the first document requested in the first request is an optimized mobile version that obeys a set of validation rules or is a non-optimized mobile version;
determining that the canonical version of the first document requested in the first request is a non-optimized mobile version, and responsive to this determination, determining that there is an optimized mobile version of the first document that is located at a different location from a location of the requested first document based on analyzing structure of HTML of the canonical version of the first document requested and identifying an HTML link tag that points to the optimized mobile version of the first document;
instead of transmitting the first document requested in the first request to the first client device, transmitting a redirect message to the first client device to the optimized mobile version of the first document that is located at the different location using the identified HTML link tag that points to the optimized mobile version of the first document;
receiving, from the first client device, a second request for the optimized mobile version of the first document that is located at the different location;
retrieving the optimized mobile version of the first document; and
transmitting, to the first client device, the optimized mobile version of the first document.