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 oneor 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 aspectsare described and claimed.
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
FIG. 1 illustrates an example client device-server operating environment.
FIG. 2 illustrates an example script and link for obtaining an alternate version of a web site.
FIG. 3 illustrates a client device-side operation for obtaining an alternate version of a web site using an instruction.
FIG. 4 illustrates an example computer.DETAILED DESCRIPTION
It will be readily understood that the components of the embodiments, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations in addition to the described example embodiments. Thus, the following more detailed description of the example embodiments, as represented in the figures, is not intended to limit the scope of the embodiments, as claimed, but is merely representative of example embodiments.
Reference throughout this specification to “one embodiment” or “an embodiment” (or the like) means that a particular feature, structure, or characteristicdescribed in connection with the embodiment is included in at least one embodiment. Thus,appearances of the phrases “in one embodiment” or “in an embodiment” or the like in various places throughout this specification are not necessarily all referring to the same embodiment.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In
1. A method, comprising: receiving a request for a web site from a client device; forming a response to the web site request for the client device, wherein the response to the web site request includes at least a portion of a firstversion 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; theconditional data comprising one or more device characteristics indicating whether the website 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; and sending the response to the web site request to the client device.
10. A computer program product, comprising: a 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 for the client device, 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, theone 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; and computer readable program code configured to send the response to the web site request to the client device.
15. A method, comprising: 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.
20. A computer program product, comprising: a 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 from a client device 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 siterequest 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 oneor 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; computer readable program code configured to determine if the conditional data is met; and computer readable program code configured to, in response to the conditional data beingmet, request an alternate version of the web site requested.
25. 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 computerreadable program code comprising: computer readable program code configured to send a request for a web site from a client device 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 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 comprisingone 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; computer readable program code configured to determine if the conditionaldata is met; and computer readable program code configured to, in response to the conditional data being met, request an alternate version of the web site requested.