- Number
- 11972198
- Published
- 2024-04-30
- Filed
- 2017-04-03
- Assignee
- DISNEY ENTERPRISES, INC.
- Inventors
- Houle; Brendan P.
- CPC
- G06F16/9577; G06F40/134; G06F40/143; G06F40/197
- Verdict
- Set aside web-site selection, generic/business
- Source
- Google Patents · FreePatentsOnline
Abstract
An aspect provides a method, including: sending a request for a web site from a client device to a server; receiving a response to the web site request from the server, wherein the response to the web site request includes at least a portion of a first version of the web site requested and one or more links describing one or more alternate versions of the web site requested, the one or more links comprising conditional data; the conditional data comprising one or more device characteristics indicating whether the web site requested and one or more of the alternate versions of the web site requested is a version of the web site appropriate for the client device, wherein the one or more device characteristics comprise device capabilities; determining if the conditional data is met; and in response to the conditional data being met, requesting an alternate version of the web site requested. Other aspects are described and claimed.
Background
BACKGROUND (1) Multiple versions of web sites are commonly available. The different versions of the web sites are generally geared toward accommodating different client device and browser capabilities. A common example is providing both a standard desktop/PC version of a web site and a mobile version of the web site, with the latter usually being a scaled down or reformatted version of the web site optimized for smaller devices and different versions of web browsers. (2) Conventionally an automatic mobile browser detection mechanism is employed on the server-side. An example is using a server-side script that detects browser types of the requesting client device and redirects the request, if appropriate, to an alternate version (e.g. mobile version) of the web site requested. Existing solutions thus focus on a server-side approach where detection is made as to browser/device capabilities and an appropriate version of the web site is sent to the client device in response to its web site request. (3) In a response to all web site requests, HTTP headers are sent from the server to the requesting client device. The HTTP headers essentially describe the connection and are followed by the content of the response, including HTML content. The HTML content includes sections, one of which is the HEAD section, which includes various non-displayed data. The HEAD section is in turn followed by the body section, which includes displayable data. A server may conventionally utilize HTTP head
Claims
1. A method, comprising: receiving a request for a web site from a client device; forming a response to the web site request, wherein the response to the web site request includes: a first set of information corresponding to a default version of the web site, wherein at least a portion of the first set of information enables a web browser of the client device to load the default version of the web site; a second set of information corresponding to a mobile version of the web site, the second set of information includes one or more media attributes associated with the mobile version of the web site; and a script comprising information that enables the web browser to determine the web browser is capable of finding links for the default version and the mobile version and, when the web browser is capable of finding the links, determine whether device characteristics of the client device match the one or more media attributes associated with the mobile version of the web site, wherein at least a portion of the second set of information enables the web browser to load the mobile version of the web site, wherein the default version of the website is different than the mobile version of the website; and sending the response to the web site request to the client device. ||
6. A computer program product, comprising: a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising: computer readable program code configured to receive a request for a web site from a client device; computer readable program code configured to form a response to the web site request, wherein the response to the web site request includes: a first set of information corresponding to a default version of the web site, wherein at least a portion of the first set of information enables a web browser to load the default version of the web site; a second set of information corresponding to a mobile version of the web site, the second set of information includes one or more media attributes associated with the mobile version of the web site; and a script comprising information that enables the web browser to determine the web browser is capable of finding links for the default version and the mobile version and, when the web browser is capable of finding the links, to determine whether device characteristics of the client device match the one or more media attributes associated with the mobile version of the web site, wherein at least a portion of the second set of information enables the web browser to load the mobile version of the web site, wherein the default version of the website is different than the mobile version of the website; and computer readable program code configured to send the response to the client device. ||
9. A method, comprising: at a client device: sending a request for a web site to a server; receiving a response to the web site request from the server, wherein the response to the web site request includes: a first set of information corresponding to a default version of the web site, wherein at least a portion of the first set of information enables a web browser running on the client device to load the default version of the web site; a second set of information corresponding to a mobile version of the web site, the second set of information includes one or more media attributes associated with the mobile version of the web site; and a script comprising information that enables the web browser running on the client device to determine the web browser is capable of finding links for the default version and the mobile version and, when the web browser is capable of finding the links, determine whether device characteristics of the client device match the one or more media attributes associated with the mobile version of the web site, wherein at least a portion of the second set of information enables the web browser running on the client device to load the mobile version of the web site, wherein the default version of the website is different than the mobile version of the website; and loading the mobile version of the web site. ||
12. A computer program product, comprising: a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising: computer readable program code configured to send a request for a web site to a server; computer readable program code configured to receive a response to the web site request from the server, wherein the response to the web site request includes: a first set of information corresponding to a default version of the web site, wherein at least a portion of the first set of information enables a web browser to load the default version of the web site; a second set of information corresponding to a mobile version of the web site, the second set of information includes one or more media attributes associated with the mobile version of the web site; and a script comprising information that enables the web browser to determine the web browser is capable of finding links for the default version and the mobile version and, when the web browser is capable of finding the links, determine whether device characteristics of a client device match the one or more media attributes associated with the mobile version of the web site, wherein at least a portion of the second set of information enables the web browser to load the mobile version of the web site, wherein the default version of the website is different than the mobile version of the website. ||
15. An apparatus, comprising: one or more processors; and a computer readable storage medium having computer readable program code embodied therewith and executable by the one or more processors, the computer readable program code comprising: computer readable program code configured to send a request for a web site to a server; computer readable program code configured to receive a response to the request for the web site from the server, wherein the response to the request for the web site includes: a first set of information corresponding to a default version of the web site, wherein at least a portion of the first set of information enables a web browser to load the default version of the web site; a second set of information corresponding to a mobile version of the web site, the second set of information includes one or more media attributes associated with the mobile version of the web site; and a script comprising information that enables the web browser to determine the web browser is capable of finding links for the default version and the mobile version and, when the web browser is capable of finding the links, determine whether device characteristics of a client device match the one or more media attributes associated with the mobile version of the web site, wherein at least a portion of the second set of information enables the web browser to load the mobile version of the web site, wherein the default version of the website is different than the mobile version of the website.