Automatically redirecting mobile client devices to optimized mobile content
AssigneeCloudflare, Inc.
InventorsIgor Postelnik, Mohd Fairuz Irtefa
Life of this patent
Estimating the term…
Abstract
A server receives a request for a document from a client device. The server determines from the request that the client device is a mobile client device. The server determines that the requested document is not for an optimized mobile version and that there is an optimized mobile version of the document that is located at a different location. Instead of transmitting the requested document to the client device, the server transmits a redirect message to the client device to the optimized mobile version of the document. The server receives a request for the optimized mobile version of the document, retrieves that version of the document, and transmits that version of the document to the mobile client device.
Claims15
A method in a server, 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.
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.
A server, comprising:
- a processor;
- and
- a non-transitory machine-readable storage medium that provides instructions that, if executed by the processor, causes the server to perform operations including:
- receive, from a first client device, a first request for a first document;
- determine, from the first request, that the first client device is a mobile client device;
- determine that the first request includes a URL matching a mobile redirect URL pattern;
- retrieve a canonical version of the first document;
- analyze 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;
- determine that the canonical version of the first document requested in the first request is a non-optimized mobile version, and responsive to this determination, determine 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, transmit 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;
- receive, from the first client device, a second request for the optimized mobile version of the first document that is located at the different location;
- retrieve the optimized mobile version of the first document;
- and
- transmit, to the first client device, the optimized mobile version of the first document.
Dependencies are inferred from the claim text.