Method and apparatus for speeding up web page access
First Claim
1. A method for speeding up Web page access, comprising:
- acquiring a uniform/universal resource locator (URL) address initiated by a user;
judging whether the URL address is stored in a preset cache database, where the cache database stores a plurality of mapping relationships between URL addresses and cache data; and
when it is judged that the URL address is stored in the preset cache database, acquiring cache data corresponding to the URL address from the cache database, processing the cache data, and rendering the Web page;
wherein the acquiring cache data corresponding to the URL address from the preset cache database comprises;
judging whether the current browser is IE kernel-based or webkit kernel-based;
when the browser is IE kernel-based, calling Asynchronous Pluggable Protocols and acquiring the cache data corresponding to the URL address from the cache database; and
when the browser is webkit kernel-based, calling an interface for proactive resource load notification and acquiring the cache data corresponding to the URL address from the cache database.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention disclose a method and apparatus for speeding up Web page access, pertaining to the network field. The method includes: acquiring a URL address initiated by a user; judging whether the URL address is stored in a preset cache database, where the cache database stores a plurality of mapping relationships between URL addresses and cache data; and when it is judged that the URL address is stored in the preset cache database, acquiring cache data corresponding to the URL address from the cache database, processing the cache data, and rendering the Web page. According to the embodiments of present invention, logic for implementing the cache database is added at the browser end. In this way, no matter a Web server or a proxy server complies with the HTTP.
-
Citations
12 Claims
-
1. A method for speeding up Web page access, comprising:
-
acquiring a uniform/universal resource locator (URL) address initiated by a user; judging whether the URL address is stored in a preset cache database, where the cache database stores a plurality of mapping relationships between URL addresses and cache data; and when it is judged that the URL address is stored in the preset cache database, acquiring cache data corresponding to the URL address from the cache database, processing the cache data, and rendering the Web page; wherein the acquiring cache data corresponding to the URL address from the preset cache database comprises; judging whether the current browser is IE kernel-based or webkit kernel-based; when the browser is IE kernel-based, calling Asynchronous Pluggable Protocols and acquiring the cache data corresponding to the URL address from the cache database; and when the browser is webkit kernel-based, calling an interface for proactive resource load notification and acquiring the cache data corresponding to the URL address from the cache database. - View Dependent Claims (2, 3, 4)
-
-
5. An apparatus for speeding up Web page access, comprising:
-
an acquiring module, configured to acquire a uniform/universal resource locator (URL) address initiated by a user; a judging module, configured to judge whether the URL address is stored in a preset cache database, wherein the cache database stores a plurality of mapping relationships between URL addresses and cache data; a processing module, configured to;
when the judging module judges that the URL address is stored in the preset cache database, acquire cache data corresponding to the URL from the cache database, process the cache data, and render the Web page;wherein the processing module comprises an acquiring unit and a processing unit; and wherein the acquiring unit is configured to;
when the judging module judges that the URL address is stored in the preset cache database, judge whether the current browser is IE kernel-based or webkit kernel-based;
when the current browser is IE kernel-based, call Asynchronous Pluggable Protocols and acquire the cache data corresponding to the URL address from the cache database;
when the current browser is webkit kernel-based, call an interface for proactive resource notifications and acquire the cache data corresponding to the URL address from the cache database; andthe processing unit is configured to process the cache data and render the Web page. - View Dependent Claims (6, 7, 8)
-
-
9. A device for speeding up Web page access, wherein the device includes:
-
memory, and one or more processors, wherein the one or more processors are configured to; acquire a uniform/universal resource locator (URL) address initiated by a user; judge whether the URL address is stored in a preset cache database, wherein the cache database stores a plurality of mapping relationships between URL addresses and cache data; and when it is judged that the URL address is stored in the preset cache database, acquire cache data corresponding to the URL address from the cache database, process the cache data, and render the Web page; wherein the one or more processors are further configured to; judge whether the current browser is IE kernel-based or webkit kernel-based; when the browser is IE kernel-based, call Asynchronous Pluggable Protocols and acquire the cache data corresponding to the URL address from the cache database; and when the browser is webkit kernel-based, call an interface for proactive resource load notification and acquire the cache data corresponding to the URL address from the cache database. - View Dependent Claims (10, 11, 12)
-
Specification