Present invention generally relates to web browsing in the Internet and more specifically to a method for assigning load priorities to the elements of a web reordering by means of controlled redirections the normal fetching order of web resources optimizing and improving the browsing experience without blocking any connection.
Web browsing is becoming a daily activity for a majority of the world population. The speed and smoothness of the browsing experience is clearly a goal that benefits both the users and the publishers.
Each user of the Internet accesses to web pages through a web browser, which allows users to access to contents hosted in servers. When a user requests a web page, an HTTP request is sent by the web browser to an HTTP server which processes said request. The HTTP returns an HTTP response to the browser, which evaluates the response and starts rendering the content requested. Additional web resources included in the requested web page entail additional requests to the server until eventually the browser is able to render the whole web page.
A server can be accessed by multiple users at the same time and one problem is that it does not have protection mechanism against excessive load conditions. In order to save time and resources, a web cache is often used. A web cache offers a temporary storage of web documents, such as HTML pages and images. Copies of the documents passing through the web cache are kept, thus next requests may be satisfied from the cache instead of the origin server. Web caches are used in several systems as search engines, web servers/web applications or web browsers.
However, and particularly in a mobile setting, nowadays the reality of web browsing is still far from being optimal. There are several issues to be taken under consideration.
Content from a web comes in an order that might not be the right one for the device rendering it, for instance, a small mobile screen does not render anything until the end because it has taken a lot of time downloading content that cannot be seen because it is out of the visible area.
Ads, specifically from third party publishers, take longer to load and block more relevant (from the publisher—and maybe also the user—point of view) content.
Blocking content may entail some drawbacks. For instance, ad blockers might kill a web via reducing its income, but on the other hand, blocking content is meaningful when, for instance, contents cannot be rendered in the requesting device.
Summarizing, a proper load order of the elements of a web, with optional blocking, seems to be a reasonable solution for those problems. The right order might depend on the web itself, on the device the user has and even on the particular request.
There are solutions in the prior art that reorder the loading of elements via modifying the content (the html request). These methods require content tampering and may fall in legal issues regarding the ownership of the content. Therefore, they only apply when there is an agreement between the parts: content publisher, content owners and acceleration solution providers. One of such is the patent U.S. Pat. No. 8,112,471 B2, which comprises a system for optimizing the performance of a website which includes a traffic management system redirecting HTTP request and applying optimization techniques to the redirected HTTP requests and the HTTP responses. For example detecting viewport content or changing the content to a mobile version.
Other families of techniques use throttling in the server side, via delaying the response of the lower priority elements. As it has been already mentioned, these have the problem of keeping browser connections blocked and avoid parallel downloads affecting negatively overall performance.
There are also techniques to reorder requests where the priority comes explicitly in the original request and other systems which have a limited number of levels, as in U.S. Pat. No. 6,742,016B1, where it is disclosed a system for handling incoming requests in a server application. It is included a session manager assigning a level of priority to the requests and it is also controlled the number of simultaneous requests sent. Less priority requests are stored.
On the other hand, there are mechanisms for web acceleration for mobiles that consist on designing a mobile specific web. Those, while being nearly optimal in providing a fast browsing experience, often sacrifice the content (the mobile version of the web is less attractive) and/or are expensive to initially build and maintain.
For all the reasons exposed before, it is missing in the prior art a method to assign load priorities to all elements of a web, which it is not bounded to any agreement between parts, but it is totally non- intrusive and transparent for browser and publisher.
Present invention solves the aforementioned problems by presenting a transparent and nonintrusive method to define the browser fetching order of web resources. The method comprises the steps of:
Thus, the fetching order of web resources is controlled according to the natural requirement of current browsers, which request the resources of a web using a queue where the redirections are inserted at the end of the queue. This condition allows that, inserting redirections in a controlled way reorders the normal fetching order.
In one embodiment of the invention, it is received in the intermediate node an HTTP request for a web resource with a priority level sent by the web browser; then if the priority level is lower than a maximum value defined previously, the HTTP request is modified by increasing the priority level; the modified HTTP request is modified and encoded in a third uniform resource locator; and finally the third uniform resource locator is sent as a second HTTP-redirection response to the web browser. When the priority level reaches a maximum value defined previously, the invention may comprise sending the HTTP request to an origin server or a web cache to fetch the web resource.
According to a particular embodiment of the invention, the intermediate node may be configured to implement delays to a set of domains. And the priority level may be implemented inserting a string to the HTTP request which encodes a delay with an original host, providing an uniform resource locator using an HTTP response code 303.
The maximum value of the priority level may correspond, according to one embodiment, to a minimum delay, that is a null delay. On the contrary, a null priority according to said embodiment corresponds to an infinity delay, which makes an HTTP request be rejected at the intermediate node.
Another aspect of the invention refers to a system for defining the browser fetching order of web resources comprising a web browser sending an HTTP request to an HTTP server, the system is characterized by an intermediate node configured for redirecting the HTTP request to the web browser before letting the HTTP request reach the HTTP server, being the intermediate node configured for:
The system of the invention may comprise, according to some embodiments, the intermediate node further configured for receiving in the intermediate node an HTTP request for a web resource with a priority level sent by the web browser; if the priority level is lower than a maximum value defined previously, modifying the HTTP request by increasing the priority level; encoding the modified HTTP request in a third uniform resource locator; and sending the third uniform resource locator as a second HTTP-redirection response to the web browser.
Optionally, the intermediate node may be further configured to implement delays to a set of domains. And, according to some embodiments of the invention, the intermediate node may insert a string into the HTTP request, which encodes a delay according to the priority level and with an original host, providing an uniform resource locator using an HTTP response code 303.
The intermediate node is an HTTP proxy-cache server in some embodiments of the invention.
A last aspect of the invention refers to a computer program product comprising computer program code adapted to perform the method of the invention, when said program code is executed on a computer, a digital signal processor, a field-programmable gate array, an application-specific integrated circuit, a micro-processor, a micro-controller, or any other form of programmable hardware.
The invention applies to all web sites without restricting the content type they provide. Furthermore, it is transparent because there is no need for the provider to design web site in any special way, and the content is not transformed at all. Said transparency also provides a direct advantage with respect to alternative solutions of the prior art, because it is not required any agreement with content owners nor providers.
Also the inactivity of the connections are minimized by present invention, compared to any standard throttling based technique, while reordering the actual download of the content. And a further advantage is that proposed invention is dynamic: the order of delay levels can be changed over time, either using an automatic system of by human intervention.
To complete the description that is being made and with the object of assisting in a better understanding of the characteristics of the invention, in accordance with a preferred example of practical embodiment thereof, accompanying said description as an integral part thereof, is a set of drawings wherein, by way of illustration and not restrictively, the following has been represented:
The invention describes a process for, in general terms, assigning load priorities to all elements of a web. According to a preferred embodiment of the invention, the prioritization is achieved by means of a system consisting on a flexible http-proxy that can be configured to implement arbitrary delays in accesses to a set of domains. But not any delay method would work, for instance, a delay in the proxy response would block all remaining content and misuse a browser connection. It is presented a browser friendly embodiment below of how to use a delay method of the proposed invention.
Current browsers request the resources of a web using a queue where the redirections are inserted at the end of the queue. This is a natural requirement that all current browsers satisfy. With this condition, redirections introduced in a controlled way transform delays into priorities and hence obtaining the desired reordering of resource downloading, therefore, the insertion of delays is a key element in this preferred embodiment to reorder the elements according to assigned priorities. HTTP redirections are used to transform depending on the delay wanted. For example, for delay 1 it is done one redirection, for delay 2 it is done 2 redirections, etc. And to manage blocking of requests, some embodiments provide an infinite delay level.
Present invention is based on an intermediate node which, according to one embodiment, it is implemented as a flexible HTTP-proxy-cache server intercepting all the connections or requests sent by a web browser to an origin server. This HTTP-proxy-cache server is able to divide the incoming requests in sets, depending solely on the value of a “host” header (the http header named ‘host’). These sets correspond to the delay levels required (a set for no delay, a set for one level of delay, a set for two levels of delay and so on and so forth).
There are different actions to be applied for each set. The actions required by the present embodiments of the invention consist on a quick selection from the value of the path; responding with an http-redirect (http response codes 303) with a dynamic location header value that depends on the path of the incoming request; letting a request pass through and send it, with a path transformation, to the origin specified by the “host” header value.
Once a request arrives to the proxy, a configuration defined previously is selected using the host the request applies to and its path. The behavior is as follows:
The method proposed by one embodiment of the present invention for building redirections consists on inserting, at the beginning of the request path, a string that encodes the delay level. The basic interaction between the browser and the proxy of said embodiment is schematically explained in
Redirecting requests avoid manipulating anything else but the url of the destination of the redirection, that contains the host and the path of the new request. If also the hosts were manipulated, they would cause collisions with some other hosts out there in the Internet, so only manipulating the path is the most appropriate non-intrusive way.
However, the technique, according to different embodiments, could consist on any manipulation of the path that, somehow, can be inverted very fast. A simple and convenient way is inserting a prefix. For instance, a request with a path/requested-path.html, the web browser is redirected to /delayed-level-3/requested-path.html, using the Http response code 303, and providing the aforementioned url with the original host. Referring to the handling of delay levels with more detail, the proxy behaves as follows:
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/ES2013/070691 | 10/7/2013 | WO | 00 |