CN104239480A - Method and device for quick access to webpage - Google Patents

Method and device for quick access to webpage Download PDF

Info

Publication number
CN104239480A
CN104239480A CN201410449191.XA CN201410449191A CN104239480A CN 104239480 A CN104239480 A CN 104239480A CN 201410449191 A CN201410449191 A CN 201410449191A CN 104239480 A CN104239480 A CN 104239480A
Authority
CN
China
Prior art keywords
buffer area
browser
web
acquiescence
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410449191.XA
Other languages
Chinese (zh)
Other versions
CN104239480B (en
Inventor
宗小斌
马远真
陶伟华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410449191.XA priority Critical patent/CN104239480B/en
Priority claimed from CN201110278365.7A external-priority patent/CN102375882B/en
Publication of CN104239480A publication Critical patent/CN104239480A/en
Application granted granted Critical
Publication of CN104239480B publication Critical patent/CN104239480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and device for quick access to a webpage, and aims to solve the problem of no cache during first access of a browser. The method comprises the following steps: locally establishing an optimal cache region in advance, and preloading all webpage data to be accessed in the optimal cache region; when initiating a webpage access request, querying whether the webpage data corresponding to the webpage access request is stored in the optimal cache region; directly reading the webpage data from the optimal cache region if the webpage data is stored; triggering a default cache mechanism of the browser to query whether the webpage data is stored in the default cache region of the browser if the webpage data is not stored. According to the invention, the access speed of the webpage (particularly a complex script page) can be improved, and the problem that the cache is automatically cleared by the browser can also be avoided.

Description

A kind of method, device of fast access webpage
Technical field
The application relates to web page access technology, particularly relates to a kind of method, device of fast access webpage.
Background technology
In the process of accessed web page, in order to improve access speed, browser all can supported web page caching mechanism.Such as, the method that the IE browser that Windows system carries can adopt accumulating to accelerate is to realize the buffer memory of webpage, the web page contents (comprising picture and cookie file etc.) of once accessing by user leaves in user computer, and along with the increase of user to access pages number, buffer memory is also accumulated.When to access the same page next time, first browser can search for the catalogue of this buffer memory, if wherein there has been the content of accessing, browser just need not be downloaded from the Internet, and directly reads out from local cache, thus improves the speed of access websites.
Meanwhile, the size of buffer memory and number are conditional, so browser has the mechanism of their a set of cleaning buffer memory, once the space that in buffer area, file takies or number exceed a certain amount of, will trigger the cache cleaner mechanism of browser.Such as, IE browser assesses weights can to each cache file, then the cache file coming last 10% is cleaned out, and the algorithm of these weights also has difference on different IE versions, and inconsistent.
In sum, the web cache mechanism that this browser generally adopts improves the speed of accessed web page to a certain extent.But, also there is following defect:
1) browser first time access is without the defect of buffer memory;
The method that the browser of the current overwhelming majority all adopts accumulating to accelerate is to realize web cache, the cache file of webpage must could be obtained after first time access, so first time access all must be downloaded from server, this just brings first time access cannot improve the problem of access speed.
2) defect fallen of the viewed device of buffer memory or other cleaning software periodic cleaning.
Browser has the mechanism of a set of cleaning buffer memory of oneself, once cache file is excessive, which file of cleaning can only be determined according to the cleaning mechanism of browser, but this which cache file of machine-processed None-identified is crucial or important, and oneself the buffer memory page uncontrollable is not cleaned yet in website.Therefore, some vital documents may be cleaned out, problem very slowly when causing regularly loading these pages.
Summary of the invention
This application provides a kind of method, device of fast access webpage, to solve the problem of browser first time access without buffer memory.
In order to solve the problem, this application discloses a kind of method of fast access webpage, comprising:
The optimization buffer area that one is different from browser acquiescence buffer area is created in advance in this locality, and at the described all web datas being different from prestrain needs access in the optimization buffer area of browser acquiescence buffer area;
When initiating web access requests, inquiring about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reading described web data; If do not preserved, then the caching mechanism triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
Preferably, the caching mechanism of described browser acquiescence also comprises: when having preserved described web data in the acquiescence buffer area of browser, directly read from the acquiescence buffer area of browser; When not preserving described web data in the acquiescence buffer area of browser, download from server.
Preferably, described establishment in this locality in advance optimizes buffer area, comprising: install protocol processor in this locality, is created optimize buffer area by described protocol processor.
Preferably, described all web datas optimizing prestrain needs access in buffer area, comprising: after installation, automatically download all web datas needing access from server, and be saved in described optimization buffer area.
Preferably, described all web datas optimizing prestrain needs access in buffer area, comprise: all web datas of preset needs access in the installation kit of described protocol processor, and will in installation kit, need all web datas of accessing to be saved in described optimization buffer area after installation is complete.
Preferably, when initiating web access requests, also comprise: the URL processing module of browser is called query function and checked whether protocol processor achieves the interface for external call; If realized, then notification protocol processor inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests; If unrealized, then notify whether preserve web data corresponding to described web access requests in the acquiescence buffer area of the cache module Query Browser of browser acquiescence.
Preferably, described directly from optimization buffer area, read described web data before, also comprise: optimize in buffer area described in the URL processing module of described protocol processor notice browser and preserved described web data.
Preferably, describedly directly from optimization buffer area, read described web data, comprising: the function reading of the URL processing module invocation protocol processor of described browser, from optimization buffer area, read described web data.
Preferably, described web data comprises page script data.
Present invention also provides a kind of device of fast access webpage, comprising:
Optimize buffer area creation module, for creating the optimization buffer area that is different from browser acquiescence buffer area in advance in this locality;
Preloaded components, for being different from described all web datas that in the optimization buffer area of browser acquiescence buffer area, prestrain needs are accessed;
Data acquisition module, for when initiating web access requests, inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reads described web data; If do not preserved, then the cache module triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
Preferably, the cache module of described browser acquiescence, also for when having preserved described web data in the acquiescence buffer area of browser, directly reads from the acquiescence buffer area of browser; When not preserving described web data in the acquiescence buffer area of browser, download from server.
Preferably, described preloaded components comprises: data download submodule, downloads all web datas needing access, and be saved in described optimization buffer area for automatic from server.
Preferably, described preloaded components comprises:
Data sub module stored, for storing all web datas needing access;
Load submodule, for will all web datas of accessing be needed in described data sub module stored to be saved in described optimization buffer area.
Preferably, described web data comprises page script data.
Compared with prior art, the application comprises following advantage:
First, the application achieve a kind of newly can configure can the caching mechanism of operation maintenance, itself does not substitute the caching mechanism of original browser, but complete compatible original caching mechanism, is supplement the one of browser rs cache mechanism.Based on the application, when browser access webpage, first from the optimization buffer memory that the application provides, reading web data, when reading the caching mechanism then not re-using browser, reading from the acquiescence buffer area of browser.Therefore, when first time accessed web page, although the acquiescence buffer area of browser not this web data, arrive in optimization buffer area as long as this web data is pre-configured, just directly can read from described optimization buffer area, thus improve access speed.
Meanwhile, if due to data cached in described optimization buffer area configure after would not by periodic cleaning, even if browser regularly performs cleaning mechanism, what also can not affect in described optimization buffer area is data cached.Therefore, by this supplementary caching mechanism, the file of buffer memory can not viewed device or other software clean out, and solves the problem of the frequent viewed device Automatic clearance of cache file of website, decreases taking of some specific website server bandwidth.The application is particularly useful for the web page access with complex page script.
Secondly, the application utilizes the asynchronous pluggable protocol (APPS, Asynchronous Pluggable Protocols) of Windows, inserts by establishment is asynchronous certainly the adapter that protocol processor realizes the network request of http protocol.By this adapter, easily required caching mechanism can be realized quickly.
Certainly, the arbitrary product implementing the application not necessarily needs to reach above-described all advantages simultaneously.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of fast access webpage described in the embodiment of the present application;
Fig. 2 is the schematic flow sheet of a kind of fast access webpage described in another embodiment of the application;
Fig. 3 is the structure drawing of device of a kind of fast access webpage described in the embodiment of the present application;
Fig. 4 is the browser structure figure of a kind of fast access webpage described in the embodiment of the present application.
Embodiment
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
The application achieve a kind of newly can configure can the caching mechanism of operation maintenance, itself does not substitute the caching mechanism of original browser, but complete compatible original caching mechanism, is supplement the one of browser rs cache mechanism.
Be described in detail below by the realization of embodiment to the application.
With reference to Fig. 1, it is the method flow diagram of a kind of fast access webpage described in the embodiment of the present application.
Step 101, creates in advance and optimize buffer area, and prestrain needs all web datas of access in described optimization buffer area in this locality;
In the present embodiment, can will need to improve the associated documents of website of access speed and index file (being referred to as web data or the cache file) upgraded module by installation kit or client, be installed on the machine of user in advance, and establishment optimization buffer area carrys out these web datas of buffer memory on subscriber set.Concrete, described web data or cache file can comprise the content of the webpage such as picture, word itself, also can comprise cookie file, can also comprise page script etc.
Wherein, described optimization buffer area is different from the acquiescence buffer area of browser.The web cache mechanism of browser support is that the web data of once being accessed by browser is deposited in described acquiescence buffer area, and carries out Automatic clearance and maintenance to this acquiescence buffer area.And the optimization buffer area described in the embodiment of the present application is not the web data of once being accessed by browser carries out buffer memory, but by the mode of prestrain, the data of the website likely accessed being carried out buffer memory, these web data browsers may once all not accessed.
Further, present embodiments provide two kinds of prestrain modes, as follows:
A kind of mode is after installation kit or the installation of client upgraded module, automatically downloads all web datas needing access from server, and is saved in described optimization buffer area;
Another kind of mode has carried all web datas needing access in described installation kit or client upgraded module, also all web datas of i.e. pre-configured needs access in described installation kit or client upgraded module, and after installation is complete all web datas are saved in described optimization buffer area.
Any one prestrain mode is adopted in practical application.And no matter adopt which kind of prestrain mode, the content of prestrain can be configured, the web data (as script, cookie, picture, word etc.) that namely can configure which website according to the demand of user needs to carry out prestrain.
Step 102, when initiating web access requests, inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reads described web data;
During concrete inquiry, the index according to cache file is inquired about.Described index is an index file, and the inside includes webpage URL and optimizes the corresponding relation of cache file in buffer area.When browser access webpage sends the http request of web page resources, will go to search in this index file, if corresponding cache file can be found, directly read, otherwise execution step 103 returns to system and does default treatment.
As from the foregoing, when accessed web page sends request, first browser can inquire about described optimization buffer area, instead of original browser acquiescence buffer area.
Step 103, if do not preserved, then the caching mechanism triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser;
When having preserved described web data in the acquiescence buffer area of browser, directly read from the acquiescence buffer area of browser;
When not preserving described web data in the acquiescence buffer area of browser, then download from server.
Be exactly more than the default treatment of system, namely use the caching mechanism that browser is supported.
In a word, no matter being read from optimization buffer area, or read from browser acquiescence buffer area, or downloading from server, after getting the cache file needing access, proceeding subsequent treatment, as shown in client.
From above-mentioned flow process, when first time accessed web page, although the acquiescence buffer area of browser not this web data, arrive in optimization buffer area as long as this web data is pre-configured, just directly can read from described optimization buffer area, thus improve access speed.
Meanwhile, if due to data cached in described optimization buffer area configure after would not by periodic cleaning, even if browser regularly performs cleaning mechanism, what also can not affect in described optimization buffer area is data cached.Therefore, by this supplementary caching mechanism, the file of buffer memory can not viewed device or other software clean out, and solves the problem of the frequent viewed device Automatic clearance of cache file of website, decreases taking of some specific website server bandwidth.In order to the realization making those skilled in the art understand the application further, be described in detail below by example more specifically.
In the present embodiment, asynchronous pluggable protocol (the APPS of Windows will be utilized, Asynchronous Pluggable Protocols), insert by establishment is asynchronous certainly the adapter that protocol processor realizes the network request of http agreement, thus obtain the processing authority of browser all http agreements aspect.By this adapter, easily required caching mechanism can be realized quickly.
Asynchronous protocol processor (APPS) of inserting windows platform processes self-defined URL protocol scheme or a kind of scheme of mime type filtering data for specifying, it allows the URL agreement being replaced Windows system default by APPS, such as http agreement or about agreement etc.
Asynchronous insert protocol processor (APPS) be one for the treatment of any thread units com object called being registered as protocol scheme.When client-side program makes request, Urlmon (the URL processing module of Windows) checks protocol scheme and creates one in registration table has been the example of the protocol handling program of this protocol scheme registration.If protocol registration scheme is successfully mapped to class mark (CLSID) of protocol processor, the CoCreateInstance method of IClassFactory interface will be called.Protocol processor obtains example by IClassFactory::CreateInstance function.
Under Windows system, former browser rs cache mechanism realizes by the asynchronous protocol processor APPS (being called for short acquiescence APPS) that inserts of system.The present embodiment asynchronously inserts protocol processor APPS (be called for short from create APPS) from creating, and as supplementing system default APPS, the two is with the use of the raising that can realize webpage access speed, while can prevent the viewed device Automatic clearance of buffer memory.
Wherein, the described APPS from creating can be installed in IE browser as a plug-in unit separately and use, also can as a part for browser function, and client tool for mounting has the brand-new browser of described APPS to realize the application.No matter be that independent plug-in unit is installed, or the browser that installation one is brand-new, after installation is complete, all can create one in client from the APPS created and optimize buffer area, and all web datas of pre-configured good needs access are saved in described optimization buffer area.
Process flow diagram 2 below shows the network request how being realized http by APPS, reads data, and do not need to obtain from network from self-defining optimization buffer area.
With reference to Fig. 2, it is the schematic flow sheet of a kind of fast access webpage described in another embodiment of the application.
Step 201, when webpage sends http request, the URL processing module (Urlmon.dll) of browser is called query function and is checked whether certainly create APPS achieves the interface supplying external call;
Concrete, first the Urlmon.dll of system calls QueryInterface function (it is the canonical function of a Com, and function is query interface) and checks whether certainly create APPS achieves IInternetProtocol interface.Wherein, described IInternetProtocol interface is one and creates by oneself the interface that APPS is exposed to external call, is responsible for and IInternetProtocolSink interface communication in down operation (referring to web download process).
If this interface realizes, then perform step 202, notice inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests from creating APPS;
If this interface is unrealized, then notify whether preserve web data corresponding to described web access requests in the acquiescence buffer area of browser acquiescence APPS (also can be described as the cache module of browser acquiescence) Query Browser, subsequent step at this slightly.
Step 202, notice inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests from creating APPS;
If preserved, then perform step 203; Otherwise notice browser acquiescence APPS, subsequent step at this slightly.
Concrete, system Urlmon.dll calls the IInternetProtocolRoot::Start method from creating APPS, and transmits the address of the IInternetProtocolSink interface of Urlmon.dll.
Wherein, IInternetProtocolRoot::Start method can be used for inquiring about data corresponding to the URL that will access whether in optimization buffer area.
Wherein, IInternetProtocolSink interface is an interface being used for receiving information and the notice of being correlated with from APPS data.
Step 203, starts inquiry from creating APPS;
First optimize buffer area data query from one of this locality, if this buffer area has the specialized page respective file needing to accelerate, just optimize buffer area reading from this locality, and do not need to get on request from network, so just achieve the acceleration of complicated webpage.Otherwise, if inquiry is less than, then the acquiescence APPS of calling system.
Step 204, when inquiring, then notifies to optimize in buffer area described in Urlmon.dll to have preserved described web data from creating APPS;
Concrete, when starting to optimize from this locality after buffer area reads corresponding data from creating APPS, call the IInternetProtocolSink::ReportData method notice Urlmon.dll of Urlmon.dll.
Step 205, Urlmon.dll calls the function reading from creating APPS, from optimization buffer area, read described web data;
Concrete, the IInternetProtocol::Read method that system Urlmon.dll calls from creating APPS reads.
Step 206, repeats step 204 to step 205, until complete the downloading task of request msg from establishment APPS.
Above-mentioned flow process can improve the loading velocity of webpage, even by all web page files of client software access websites required for download user in advance, thus can reduce network connection speed and number of times.And, can also prevent the viewed device Automatic clearance of buffer memory from falling.
In addition, also it should be noted that, the above embodiments of the present application are particularly useful for web page access and the loading with complex page script.When these complex pages of access, if download complicated page script from server, need to spend the more time; If but used the method described in the embodiment of the present application, be first loaded in local optimization buffer area by the mode of prestrain, then read from described optimization buffer area, then access speed would improve greatly, and more obvious to the acceleration effect of the complex script page.
It should be noted that, for aforesaid embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action might not be that the application is necessary.
Based on the explanation of said method embodiment, present invention also provides corresponding device embodiment, as follows.
With reference to Fig. 3, it is the structure drawing of device of a kind of fast access webpage described in the embodiment of the present application.
The device 10 of described fast access webpage can comprise optimizes buffer area creation module 20, preloaded components 30 and data acquisition module 40, wherein,
Optimizing buffer area creation module 20, optimizing buffer area for creating in this locality in advance;
Preloaded components 30, needs all web datas of access for prestrain in described optimization buffer area;
Data acquisition module 40, for when initiating web access requests, inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reads described web data; If do not preserved, then the cache module triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
The cache module of described browser acquiescence, also for when having preserved described web data in the acquiescence buffer area of browser, directly reads from the acquiescence buffer area of browser; When not preserving described web data in the acquiescence buffer area of browser, download from server.
Wherein, the web cache mechanism that the cache module that described browser is given tacit consent to carries for realizing browser can be the APPS that browser carries.
Preferred further, embodiments provides two kinds of prestrain modes at said method, these two kinds of prestrain modes corresponding, described preloaded components 30 can comprise following submodule respectively:
Described preloaded components 30 can comprise:
Data download submodule, download all web datas needing access, and be saved in described optimization buffer area for automatic from server.
Described preloaded components 30 also can comprise:
Data sub module stored, for storing all web datas needing access;
Load submodule, for will all web datas of accessing be needed in described data sub module stored to be saved in described optimization buffer area.
Certainly, described preloaded components 30 also can comprise the above all submodules realizing two kinds of configuration modes simultaneously.
For said apparatus embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The device of described fast access webpage can be used as independent plug-in unit and is installed in IE browser and uses, also can as a part for browser function, as shown in Figure 4.
With reference to Fig. 4, be the browser structure figure of a kind of fast access webpage described in the embodiment of the present application.
Described browser comprises a protocol processor 50, and described protocol processor 50 can comprise the device 10 of the fast access webpage shown in Fig. 3, see the explanation of Fig. 3, can omit at this.
In addition, described browser also can comprise cache module 60, for realizing the web cache mechanism of browser acquiescence.
Preferably, described browser can also comprise URL processing module 70, for when initiating web access requests, calling query function and checking whether protocol processor 50 achieves the interface for external call; If realized, then whether preserve web data corresponding to described web access requests in notification protocol processor 50 query optimization buffer area; If unrealized, then notify whether preserve web data corresponding to described web access requests in the acquiescence buffer area of cache module 60 Query Browser of browser acquiescence.
In sum, the device of described fast access webpage or browser achieve a kind of newly can configure can the caching mechanism of operation maintenance, itself does not substitute the caching mechanism of original browser, but complete compatible original caching mechanism, be that the one of browser rs cache mechanism is supplemented.By this supplementary caching mechanism, the file of buffer memory can not be cleaned out by former browser or other software, solves the problem of the frequent viewed device Automatic clearance of cache file of website, decreases taking of some specific website server bandwidth.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Above to the method for a kind of fast access webpage that the application provides, device and a kind of browser, be described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.
The embodiment of the present invention further discloses a kind of method of A1, fast access webpage, comprising:
Create in this locality in advance and optimize buffer area, and prestrain needs all web datas of access in described optimization buffer area;
When initiating web access requests, inquiring about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reading described web data; If do not preserved, then the caching mechanism triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
A2, method according to A1, is characterized in that, the caching mechanism of described browser acquiescence also comprises:
When having preserved described web data in the acquiescence buffer area of browser, directly read from the acquiescence buffer area of browser;
When not preserving described web data in the acquiescence buffer area of browser, download from server.
A3, method according to A1, is characterized in that, described establishment in this locality in advance optimizes buffer area, comprising:
In this locality, protocol processor is installed, is created by described protocol processor and optimize buffer area.
A4, method according to A3, is characterized in that, describedly needs all web datas of access optimizing prestrain in buffer area, comprising:
After installation, automatically download all web datas needing access from server, and be saved in described optimization buffer area.
A5, method according to A3, is characterized in that, describedly needs all web datas of access optimizing prestrain in buffer area, comprising:
The preset all web datas needing access in the installation kit of described protocol processor, and will in installation kit, need all web datas of accessing to be saved in described optimization buffer area after installation is complete.
A6, method according to A3, is characterized in that, when initiating web access requests, also comprises:
The URL processing module of browser is called query function and is checked whether protocol processor achieves the interface for external call;
If realized, then notification protocol processor inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests;
If unrealized, then notify whether preserve web data corresponding to described web access requests in the acquiescence buffer area of the cache module Query Browser of browser acquiescence.
A7, method according to A6, is characterized in that, described directly from optimization buffer area, read described web data before, also comprise:
Optimize in buffer area described in the URL processing module of described protocol processor notice browser and preserved described web data.
A8, method according to A6, is characterized in that, describedly directly from optimization buffer area, reads described web data, comprising:
The function reading of the URL processing module invocation protocol processor of described browser, reads described web data from optimization buffer area.
A9, according to the arbitrary described method of A1 to A8, to it is characterized in that:
Described web data comprises page script data.
The embodiment of the present invention further discloses the device of B10, a kind of fast access webpage, comprising:
Optimizing buffer area creation module, optimizing buffer area for creating in this locality in advance;
Preloaded components, needs all web datas of access for prestrain in described optimization buffer area;
Data acquisition module, for when initiating web access requests, inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reads described web data; If do not preserved, then the cache module triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
B11, device according to B10, is characterized in that:
The cache module of described browser acquiescence, also for when having preserved described web data in the acquiescence buffer area of browser, directly reads from the acquiescence buffer area of browser; When not preserving described web data in the acquiescence buffer area of browser, download from server.
B12, device according to B10 or B11, it is characterized in that, described preloaded components comprises:
Data download submodule, download all web datas needing access, and be saved in described optimization buffer area for automatic from server.
B13, device according to B10 or B11, it is characterized in that, described preloaded components comprises:
Data sub module stored, for storing all web datas needing access;
Load submodule, for will all web datas of accessing be needed in described data sub module stored to be saved in described optimization buffer area.
B14, device according to B10 or B11, is characterized in that:
Described web data comprises page script data.

Claims (10)

1. a method for fast access webpage, comprising:
Create in this locality in advance and optimize buffer area, and prestrain needs all web datas of access in described optimization buffer area;
When initiating web access requests, inquiring about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reading described web data; If do not preserved, then the caching mechanism triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
2. method according to claim 1, is characterized in that, the caching mechanism of described browser acquiescence also comprises:
When having preserved described web data in the acquiescence buffer area of browser, directly read from the acquiescence buffer area of browser;
When not preserving described web data in the acquiescence buffer area of browser, download from server.
3. method according to claim 1, is characterized in that, described establishment in this locality in advance optimizes buffer area, comprising:
In this locality, protocol processor is installed, is created by described protocol processor and optimize buffer area.
4. method according to claim 3, is characterized in that, described all web datas optimizing prestrain needs access in buffer area, comprising:
After installation, automatically download all web datas needing access from server, and be saved in described optimization buffer area.
5. method according to claim 3, is characterized in that, described all web datas optimizing prestrain needs access in buffer area, comprising:
The preset all web datas needing access in the installation kit of described protocol processor, and will in installation kit, need all web datas of accessing to be saved in described optimization buffer area after installation is complete.
6. method according to claim 3, is characterized in that, when initiating web access requests, also comprises:
The URL processing module of browser is called query function and is checked whether protocol processor achieves the interface for external call;
If realized, then notification protocol processor inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests;
If unrealized, then notify whether preserve web data corresponding to described web access requests in the acquiescence buffer area of the cache module Query Browser of browser acquiescence.
7. method according to claim 6, is characterized in that, described directly from optimization buffer area, read described web data before, also comprise:
Optimize in buffer area described in the URL processing module of described protocol processor notice browser and preserved described web data.
8. a device for fast access webpage, comprising:
Optimizing buffer area creation module, optimizing buffer area for creating in this locality in advance;
Preloaded components, needs all web datas of access for prestrain in described optimization buffer area;
Data acquisition module, for when initiating web access requests, inquires about in described optimization buffer area whether preserve web data corresponding to described web access requests, if preserved, then directly from described optimization buffer area, reads described web data; If do not preserved, then the cache module triggering browser acquiescence comes whether preserve described web data in the acquiescence buffer area of Query Browser.
9. device according to claim 8, is characterized in that:
The cache module of described browser acquiescence, also for when having preserved described web data in the acquiescence buffer area of browser, directly reads from the acquiescence buffer area of browser; When not preserving described web data in the acquiescence buffer area of browser, download from server.
10. device according to claim 8 or claim 9, it is characterized in that, described preloaded components comprises:
Data download submodule, download all web datas needing access, and be saved in described optimization buffer area for automatic from server.
CN201410449191.XA 2011-09-19 2011-09-19 A kind of quick method, apparatus for accessing webpage Active CN104239480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410449191.XA CN104239480B (en) 2011-09-19 2011-09-19 A kind of quick method, apparatus for accessing webpage

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110278365.7A CN102375882B (en) 2011-09-19 2011-09-19 Method, device and browser for rapidly accessing webpage
CN201410449191.XA CN104239480B (en) 2011-09-19 2011-09-19 A kind of quick method, apparatus for accessing webpage

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201110278365.7A Division CN102375882B (en) 2011-09-19 2011-09-19 Method, device and browser for rapidly accessing webpage

Publications (2)

Publication Number Publication Date
CN104239480A true CN104239480A (en) 2014-12-24
CN104239480B CN104239480B (en) 2018-01-16

Family

ID=52227539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410449191.XA Active CN104239480B (en) 2011-09-19 2011-09-19 A kind of quick method, apparatus for accessing webpage

Country Status (1)

Country Link
CN (1) CN104239480B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580521A (en) * 2015-01-30 2015-04-29 宁波凯智信息科技有限公司 Preloading method and system for client to smoothly access to server data
CN104991916A (en) * 2015-06-24 2015-10-21 小米科技有限责任公司 Webpage loading method and apparatus
CN106294365A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 The page data processing method of a kind of single page web application and equipment
CN107450994A (en) * 2017-06-28 2017-12-08 上海壹账通金融科技有限公司 Interface interchange method and system
CN108241689A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 Page resource acquisition methods, device and client device
CN108304302A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 A kind of interface merging method, equipment and computer readable storage medium
CN111666517A (en) * 2020-05-07 2020-09-15 曙光信息产业股份有限公司 Webpage access method and device and computer equipment
CN112395533A (en) * 2020-11-18 2021-02-23 北京字节跳动网络技术有限公司 Page loading method and device, computer equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163779A (en) * 1997-09-29 2000-12-19 International Business Machines Corporation Method of saving a web page to a local hard drive to enable client-side browsing
US20070276887A1 (en) * 2006-04-28 2007-11-29 Research In Motion Limited Method of reflecting on another device a change to a browser cache on a handheld electronic device, and associated device
CN101668004A (en) * 2008-09-04 2010-03-10 阿里巴巴集团控股有限公司 Method, device and system for acquiring webpage
CN102109989A (en) * 2009-12-29 2011-06-29 阿里巴巴集团控股有限公司 Method, device and system for controlling browser cache

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163779A (en) * 1997-09-29 2000-12-19 International Business Machines Corporation Method of saving a web page to a local hard drive to enable client-side browsing
US20070276887A1 (en) * 2006-04-28 2007-11-29 Research In Motion Limited Method of reflecting on another device a change to a browser cache on a handheld electronic device, and associated device
CN101668004A (en) * 2008-09-04 2010-03-10 阿里巴巴集团控股有限公司 Method, device and system for acquiring webpage
CN102109989A (en) * 2009-12-29 2011-06-29 阿里巴巴集团控股有限公司 Method, device and system for controlling browser cache

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CONNOR: ""How HTML 5 link prefetching can make your site load faster with one line of code"", 《HTTP://KEYBOARDY.COM/PROGRAMMING/HTML5-LINKE-PREFETCHING/》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580521A (en) * 2015-01-30 2015-04-29 宁波凯智信息科技有限公司 Preloading method and system for client to smoothly access to server data
CN106294365A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 The page data processing method of a kind of single page web application and equipment
CN104991916A (en) * 2015-06-24 2015-10-21 小米科技有限责任公司 Webpage loading method and apparatus
CN108241689A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 Page resource acquisition methods, device and client device
CN107450994A (en) * 2017-06-28 2017-12-08 上海壹账通金融科技有限公司 Interface interchange method and system
WO2019000626A1 (en) * 2017-06-28 2019-01-03 上海壹账通金融科技有限公司 Interface invoking method, system, electronic device and computer readable storage medium
CN107450994B (en) * 2017-06-28 2020-02-18 深圳壹账通智能科技有限公司 Interface calling method and system
CN108304302A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 A kind of interface merging method, equipment and computer readable storage medium
CN108304302B (en) * 2017-12-22 2021-08-24 努比亚技术有限公司 Interface merging method, equipment and computer readable storage medium
CN111666517A (en) * 2020-05-07 2020-09-15 曙光信息产业股份有限公司 Webpage access method and device and computer equipment
CN112395533A (en) * 2020-11-18 2021-02-23 北京字节跳动网络技术有限公司 Page loading method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN104239480B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN102375882B (en) Method, device and browser for rapidly accessing webpage
CN104239480A (en) Method and device for quick access to webpage
US20220006878A1 (en) Method and apparatus for reducing loading time of web pages
RU2673403C2 (en) Website access method, device and website system
CN102067094B (en) cache optimization
CN107547629B (en) Method and device for downloading client static resources, electronic equipment and readable medium
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US9088462B2 (en) Common web accessible data store for client side page processing
US20100146415A1 (en) Dns prefetch
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
CN104468807A (en) Processing method, cloud end device, local devices and system for webpage cache
CN108932277B (en) Webpage loading method, webpage loading system and server
CN109167840B (en) Task pushing method, node autonomous server and edge cache server
WO2013170715A1 (en) Method and system for loading file in webgame
CN103258056B (en) Process the method for style design table, server, client and system
CN102567339A (en) Method, device and system for acquiring start page
CN103269377B (en) Process the method for script file, server, client and system
CN101799821A (en) Method and system for realizing webpage application by widget
US10341454B2 (en) Video and media content delivery network storage in elastic clouds
KR101218574B1 (en) Delivering contents by using storage of network
WO2016131481A1 (en) An intermediate network node for providing a service to end user devices in a wireless communications network
CN110830537B (en) Page processing method and device
CN108111551B (en) Connection processing method and device
CN111698273A (en) Method and device for processing request
CN114546976A (en) User mode distributed file system access method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220706

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.