CN105208127A - Webpage caching processing method and system and intelligent terminal - Google Patents

Webpage caching processing method and system and intelligent terminal Download PDF

Info

Publication number
CN105208127A
CN105208127A CN201510650331.4A CN201510650331A CN105208127A CN 105208127 A CN105208127 A CN 105208127A CN 201510650331 A CN201510650331 A CN 201510650331A CN 105208127 A CN105208127 A CN 105208127A
Authority
CN
China
Prior art keywords
web page
intelligent terminal
page resource
application program
service end
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
CN201510650331.4A
Other languages
Chinese (zh)
Other versions
CN105208127B (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.)
SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI HANYIN INFORMATION TECHNOLOGY 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 SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510650331.4A priority Critical patent/CN105208127B/en
Publication of CN105208127A publication Critical patent/CN105208127A/en
Application granted granted Critical
Publication of CN105208127B publication Critical patent/CN105208127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention discloses a webpage caching processing method and system and an intelligent terminal and belongs to the technical field of intelligent terminals. The method includes the steps that S1, the intelligent terminal starts an application program; S2, the intelligent terminal requests a remote server to download corresponding updating data packets so as to update local static webpage resources required when the application program loads a webpage display interface according to the updating data packets and store the updated static webpage resources into a system cache; S3, the intelligent terminal runs the application program according to an instruction input externally and reads the static webpage resources from the system cache; S4, the intelligent terminal forms and displays the webpage display interface according to the read static webpage resources. According to the technical scheme, the method and system and the intelligent teminal have the advantages that the static webpage resource caching function can be achieved on the application program with the webpage display function, and the problems that loading time of webpages is too long and the intelligent terminal is heated easily when the application program with the webpage display function is used are solved.

Description

A kind of web cache processing method and system and intelligent terminal
Technical field
The present invention relates to intelligent terminal technical field, particularly relate to a kind of web cache processing method and system and intelligent terminal.
Background technology
In existing intelligent terminal, usually there is a kind of application program (Application, APP) and there is mixing (Hybrid) pattern.What is called has the application program of mixed mode, refers to the application program that a class of the Cross-border congestion management advantage of Consumer's Experience advantage and the network-type application program (WebAPP) having localized application program (NativeAPP) concurrently is novel.
Particularly, so-called HybridAPP, it only has the user interface (UIWebView) of a webpage in intelligent terminal side, after user runs this user interface, access be online web page contents.For this kind of APP, if under user is in the poor environment of network signal in use, then can need because web page loading time is long to wait as long for, simultaneously due to this kind of APP when showing more content can in intelligent terminal continuous service download thread, therefore the processor resource taking intelligent terminal can be continued, promote the power consumption of intelligent terminal, increase the caloric value of intelligent terminal, thus intelligent terminal is occurred, and program runs the phenomenon of blocking and timing.
Summary of the invention
According to problems of the prior art, the technical scheme of a kind of web cache processing method and system and intelligent terminal is now provided, the application program being intended to have web displaying function realizes the caching function of static Web page resource, solution web page loading time is long, uses the application program with web displaying function more easily to make the problems such as intelligent terminal heating.
Technique scheme specifically comprises:
A kind of web cache processing method, is applicable to intelligent terminal; Wherein, the application program run in described intelligent terminal has web displaying interface;
Described web cache processing method specifically comprises:
Step S1, described intelligent terminal starts described application program;
Step S2, described intelligent terminal downloads corresponding more new data packets, to upgrade according to the static Web page resource of described more new data packets to this locality that described application program loads needed for described web displaying interface and to be stored in system cache to long-range service end request;
Step S3, application program described in the instruction operation that described intelligent terminal inputs according to outside, and from described system cache, read described static Web page resource;
Step S4, described intelligent terminal forms described web displaying interface according to the described static Web page resource be read and shows.
Preferably, this web cache processing method, wherein, described step S1 also comprises, and described application program is switched to front stage operation from backstage by described intelligent terminal, to start described application program.
Preferably, this web cache processing method, wherein, described step S2 specifically comprises:
Step S21, described intelligent terminal judges that the described web displaying interface of the described application program be activated is the need of using local described static Web page resource;
Use described static Web page resource if do not need, then turn to step S25;
Step S22, described intelligent terminal sends inquiry request to described service end, with inquire about described service end whether exist corresponding described in more new data packets;
If do not exist in described service end corresponding described in more new data packets, then described service end issues for representing the first notification message not needing to carry out upgrading, with rear steering step S25 to described intelligent terminal;
Step S23, described service end issues for representing second notification message that can carry out upgrading to described intelligent terminal;
Step S24, described intelligent terminal according to described second notification message from described service end download corresponding described in more new data packets resolving, according to described in after parsing more new data packets described static Web page resource is upgraded and is preserved;
Step S25, described intelligent terminal judges the preliminary treatment success for described static Web page resource, and preliminary treatment completes, with step S3 described in rear steering.
Preferably, this web cache processing method, wherein, in described step S24, described intelligent terminal from described service end download corresponding described in more after new data packets, whether successfully judge to download;
If download successfully, then continue to perform described step S24;
If failed download, then judge the renewal failure for described static Web page resource, preliminary treatment completes, with step S3 described in rear steering.
Preferably, this web cache processing method, wherein, in described step S24, after described intelligent terminal completes the parsing to described more new data packets, removes the space of the described system cache that this downloading task takies.
Preferably, this web cache processing method, wherein, in described step S3, after application program described in the instruction operation that described intelligent terminal inputs according to outside, first performs following judgement:
Judge described application program be run after described web displaying interface the need of using local described static Web page resource:
If desired use, then continue to perform described step S3;
Use if do not need, then described intelligent terminal is to the long-range corresponding web page resources of described service end acquisition request, to form corresponding described web displaying interface.
Preferably, this web cache processing method, wherein, described step S3 specifically comprises:
Step S31, application program described in the instruction operation that described intelligent terminal inputs according to outside, and need at described web displaying interface to turn to step S32 when using local described static Web page resource;
Step S32, the network request to the corresponding web page resources of described service end acquisition request that described application program is initiated tackled by described intelligent terminal;
Step S33, described intelligent terminal reads the configuration file being associated with described system cache, and judges whether to preserve in described system cache the described static Web page resource being associated with described network request according to described configuration file;
Be associated with the described static Web page resource of described network request if do not preserve in described system cache, then turn to step S35;
Step S34, described intelligent terminal reads corresponding described static Web page resource from described system cache, with step S4 described in rear steering;
Step S35, described intelligent terminal sends described network request to long-range described service end, to ask to obtain corresponding described web page resources from described service end;
Step S36, described intelligent terminal forms corresponding described web displaying interface according to the described web page resources obtained.
A kind of web cache treatment system, is applicable to intelligent terminal; Wherein, the application program run in described intelligent terminal has web displaying interface, realizes transfer of data between described intelligent terminal and long-range service end;
Then described web cache treatment system comprises:
Start unit, for starting corresponding described application program in described intelligent terminal;
Updating block, for according to the described application program be activated, to the corresponding more new data packets of described service end request, upgrades with the static Web page resource of this locality loaded needed for described web displaying interface described application program;
Buffer unit, connects described updating block, and described updating block will pass through the described static Web page resource conservation of renewal in described buffer unit;
Running unit, connect described buffer unit, for application program described in the instruction operation that inputs according to outside, and from described buffer unit, reading the described static Web page resource be saved, the described static Web page resource according to being read forms described web displaying interface and is shown on the display screen of described intelligent terminal.
Preferably, this web cache treatment system, wherein, described start unit comprises:
Handover module, for needing the described application program be activated to switch to front stage operation from backstage.
Preferably, this web cache treatment system, wherein, described updating block comprises:
First judge module, for judging that the described web displaying interface of the described application program be activated is the need of using local described static Web page resource, and exports corresponding first judged result;
Request sending module, connect described first judge module, for according to described first judged result, when needing to use local described static Web page resource at described web displaying interface, send corresponding inquiry request to described service end, with inquire about described service end whether exist corresponding described in more new data packets;
Second judge module, the Query Result for returning according to the corresponding described inquiry request of described service end judge described service end whether exist corresponding described in more new data packets, and export corresponding second judged result;
Update module, connect described second judge module, for according to described second judged result, described service end feed back for for represent can carry out the second notification message upgraded time, from described service end download corresponding described in more new data packets resolving, according to described in after parsing more new data packets described static Web page resource is upgraded and is preserved;
Represent that described web displaying interface does not need to use local described static Web page resource in described first judged result, or described second judged result represent that described service end feeds back for being used to indicate the first notification message not needing to carry out upgrading time, described updating block does not upgrade described static Web page resource.
Preferably, this web cache treatment system, wherein, also comprises in described updating block:
3rd judge module, connects described update module, for judge described update module whether successfully download described in more new data packets, and export corresponding 3rd judged result;
First control module, connect described 3rd judge module and described update module respectively, for according to described 3rd judged result, control the renewal rewards theory of described update module stopping to described static Web page resource when more new data packets is failed described in described update module is downloaded.
Preferably, this web cache treatment system, wherein, also comprises:
Clearing cell, connects described updating block, for complete the parsing to described more new data packets at described updating block after, removes the space of the described system cache that this downloading task takies.
Preferably, this web cache treatment system, wherein, also comprises in described running unit:
4th judge module, after being run in described application program, judging that described web displaying interface is the need of using local described static Web page resource, and exports corresponding 4th judged result;
Run module, connect described 4th judge module, for according to described 4th judged result:
When described 4th judged result represents the described static Web page resource of needs use this locality, described web displaying interface, application program according to the instruction operation of outside input, and from described system cache, read described static Web page resource; Or
When described 4th judged result represents that described web displaying interface does not need to use local described static Web page resource, directly to the long-range corresponding remote web page resource of described service end acquisition request, to form corresponding described web displaying interface.
Preferably, this web cache treatment system, wherein, described running unit also comprises:
Blocking module, connects described operation module, for tackling the network request to the corresponding web page resources of described service end acquisition request that described application program is initiated when described operation module reads described static Web page resource from described system cache;
5th judge module, for according to the described configuration file being associated with described buffer unit, judges whether to preserve in described buffer unit the described static Web page resource being associated with described network request, and exports corresponding 5th judged result;
Second control module, connect described blocking module and described 5th judge module respectively, for according to described 5th judged result, when not preserving the described static Web page resource being associated with described network request in described buffer unit, control the interception of described blocking module cancellation to described network request;
Described running unit according to the described static Web page resource read, or according to the corresponding web page resources that described network request gets from described service end, forms corresponding described web displaying interface.
A kind of intelligent terminal, wherein, adopts above-mentioned web cache processing method.
A kind of intelligent terminal, wherein, comprises above-mentioned web cache treatment system.
The beneficial effect of technique scheme is:
1) a kind of web cache processing method is provided, the caching function of static Web page resource can be realized in the application program with web displaying function, solution web page loading time is long, uses the application program with web displaying function more easily to make the problems such as intelligent terminal heating;
2) provide a kind of web cache treatment system, can support to realize above-mentioned web cache processing method.
Accompanying drawing explanation
Fig. 1 is in preferred embodiment of the present invention, a kind of overall procedure schematic diagram of web cache processing method;
Fig. 2-3 is in preferred embodiment of the present invention, with on the basis of Fig. 1, and the schematic flow sheet step by step of web cache processing method;
Fig. 4 is in preferred embodiment of the present invention, a kind of general structure schematic diagram of web cache treatment system;
Fig. 5-7 is in preferred embodiment of the present invention, on the basis of Fig. 4, and the clustered architecture schematic diagram of web cache treatment system.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
In preferred embodiment of the present invention, based on the above-mentioned problems in the prior art, now provide a kind of technical scheme of web cache processing method.This technical scheme is applicable to intelligent terminal, such as mobile terminal and other terminals with the parts such as intelligent processing unit and display unit.In preferred embodiment of the present invention, the application program run in above-mentioned intelligent terminal has web displaying interface.In other words, in preferred embodiment of the present invention, in the intelligent terminal of the web cache processing method in application technical solution of the present invention, run HybridAPP as described above.
Then particularly, in preferred embodiment of the present invention, as shown in Figure 1, above-mentioned web cache processing method comprises:
Step S1, intelligent terminal starts application program;
Step S2, intelligent terminal downloads corresponding more new data packets to long-range service end request, to carry out upgrading according to the static Web page resource of this locality more needed for new data packets application programs Web page loading display interface and to be stored in system cache;
Step S3, the instruction operation application program that intelligent terminal inputs according to outside, and from system cache, read static Web page resource;
Step S4, intelligent terminal forms web displaying interface according to the static Web page resource be read and shows.
In a particular embodiment, it (can be unlatching application program that above-mentioned intelligent terminal starts application program, also can for the application program being originally in backstage be switched to front stage operation) be activated after, first system judges that the web displaying interface of the application program of current startup is the need of using local static Web page resource, and download corresponding more new data packets to long-range service end request when needed, to upgrade local static Web page resource, to the static Web page resource conservation of renewal be passed through in the system cache of intelligent terminal subsequently, call for intelligent terminal.Subsequently intelligent terminal according to the instruction that outside inputs bring into operation above-mentioned be activated application program (such as according to outside input instruction eject corresponding web displaying interface etc.), then directly can obtain the static Web page resource of this locality that this process upgrades from system cache, check to form corresponding web displaying interface and to be supplied to user.
Then in preferred embodiment of the present invention, above described " startup application program " can for switch to front stage operation by application program from backstage, now application program may not yet recall web displaying interface, therefore while it switches to front stage operation, intelligent terminal carries out the preliminary treatment of local static Web page resource and completes, intelligent terminal " runs application " according to external command subsequently, and uses static Web page resource form corresponding web displaying interface and show.In other words, in preferred embodiment of the present invention, the process of above-mentioned renewal static Web page resource is pretreated process, not carries out when user uses application program.
In preferred embodiment of the present invention, as shown in Figure 2, above-mentioned steps S2 specifically comprises:
Step S21, intelligent terminal judges that the web displaying interface of the application program be activated is the need of using local static Web page resource;
Use static Web page resource if do not need, then turn to step S25;
In preferred embodiment of the present invention, in above-mentioned steps S21, first intelligent terminal judges that the application program be activated forms corresponding web displaying interface and is positioned at local static Web page resource the need of using:
1) need to use local static Web page resource if form web displaying interface, then turn to the step of the renewal static Web page resource hereinafter described;
2) do not need to use local static Web page resource if form web displaying interface, then turn to the direct judgement preliminary treatment success the step exited (step S25) that hereinafter describe.
In preferred embodiment of the present invention, the need of the local static resource Web page loading of use, be directly configured by described service end.When web page contents has renewal, but service end fails again to provide intelligent terminal can supply the packet upgraded in time, at this time by corresponding configuration, service end can notify that intelligent terminal does not need to use local static Web page resource, the webpage of direct access services end, namely now intelligent terminal turns to following step S25.
Step S22, intelligent terminal sends inquiry request to service end, whether there is corresponding more new data packets with inquiry service end;
If there is not corresponding more new data packets in service end, then service end issues for representing the first notification message not needing to carry out upgrading, with rear steering step S25 to intelligent terminal;
In preferred embodiment of the present invention, if the judgement in above-mentioned steps S21 represents that forming web displaying interface needs uses local static Web page resource, then intelligent terminal sends request the network request (realizing remote data transmission between intelligent terminal and long-range service end) upgrading web page resources to long-range service end.After service end receives this network request, first judge whether to include in service end the web page resources that can carry out upgrading.Such as, renewal version current for intelligent terminal and corresponding lastest imformation, while sending network request to service end, are sent to service end by intelligent terminal.Service end, according to renewal version and corresponding lastest imformation, judges whether there is the more new data packets of renewal version higher than the static Web page resource in intelligent terminal in service end:
1) if there is this more new data packets higher than the static Web page resource of this locality of upgraded edition in service end, then turn to following step, intelligent terminal starts to download this more new data packets;
2) upgrade the more new data packets of version higher than the static Web page resource of this locality if do not exist in service end, then service end can issue first notification message not needing to upgrade, with rear steering step S25 to intelligent terminal.
Above-mentioned judging whether needs the process upgraded to be only an embodiment of technical solution of the present invention, and other technical schemes that can realize upgrading judgement that those skilled in the art carry out based on above described technical scheme all should be included in protection scope of the present invention.
Step S23, service end issues for representing second notification message that can carry out upgrading to intelligent terminal;
In preferred embodiment of the present invention, if the judgement in above-mentioned steps S22 represents the more new data packets existing in service end and can upgrade the static Web page resource of this locality, then service end can issue second notification message that can carry out upgrading to intelligent terminal.
Step S24, intelligent terminal is downloaded corresponding more new data packets according to the second notification message from service end and is resolved, and to upgrade and preserve according to the more new data packets after resolving to static Web page resource;
In preferred embodiment of the present invention, intelligent terminal according to above-mentioned second notification message, then from the corresponding more new data packets of service end acquisition request (namely download).
In preferred embodiment of the present invention, intelligent terminal is downloaded and after obtaining corresponding more new data packets, is carried out decompress(ion), and upgrade, to complete the renewal process of whole web page resources according to the static Web page resource of more new data to this locality that decompress(ion) obtains it.
In preferred embodiment of the present invention, at decompress(ion) and after completing renewal, intelligent terminal remove before system resource shared by downloading data.Such as, downloading data in scavenge system buffer memory, and the download directory etc. of scavenge system, to be downloaded the system resource that process takies before discharging.
In preferred embodiment of the present invention, if intelligent terminal judges that then intelligent terminal judges this time to the preliminary treatment failure of static Web page resource, and turns to step S3 this time to the failed download of more new data simultaneously.
Step S25, intelligent terminal judges the preliminary treatment success for static Web page resource, and preliminary treatment completes, with rear steering step S3.
Then in preferred embodiment of the present invention, being updated successfully or failure no matter for static Web page resource, or do not need to upgrade static Web page resource, finally all show preliminary treatment.Unique difference is that intelligent terminal is updated successfully or failure to user's prompting, or prompting does not need to upgrade.In another preferred embodiment of the present invention, intelligent terminal does not need to point out user, only records and preserve to upgrade relevant daily record.
In preferred embodiment of the present invention, in above-mentioned steps S3, after the instruction operation application program that intelligent terminal inputs according to outside, first perform following judgement:
Judge application program be run after web displaying interface the need of using local described static Web page resource:
If desired use, then continue to perform step S3;
Use if do not need, then intelligent terminal is to the corresponding remote web page resource of long-range service end acquisition request, to form corresponding web displaying interface, with backed off after random.
In other words, in preferred embodiment of the present invention, if when running application, recalling corresponding web displaying interface needs to use local static Web page resource (url judgement that can be relevant according to this web displaying interface), then continue to perform step S3; Local static Web page resource (namely needing to transfer other long-range web page resources) is used if do not need, then do not perform above-mentioned steps S3, but the network request of invoking web page resource is sent request to long-range service end, and download corresponding web page resources, to form the web displaying interface be transferred out according to the response message of feedback.
In preferred embodiment of the present invention, as shown in Figure 3, above-mentioned steps S3 specifically comprises:
Step S31, the instruction operation application program that intelligent terminal inputs according to outside, and need at web displaying interface to turn to step S32 when using local static Web page resource;
In preferred embodiment of the present invention, as noted before, if when web displaying interface does not need to use local static Web page resource, then intelligent terminal by corresponding network request to the long-range web page resources of long-range service end acquisition request, to complete formation and the display at web displaying interface, with backed off after random.
Step S32, the network request to the corresponding web page resources of service end acquisition request that intelligent terminal interception application program is initiated;
In preferred embodiment of the present invention, application program is at every turn when forming (or cry call) corresponding web displaying interface, capital conventionally in way carry out, namely send corresponding network request to long-range service end, to ask to download corresponding web page resources.But, when application program only needs the static Web page resource using local buffer memory, intelligent terminal can tackle above-mentioned network request, and then the static Web page Resourse Distribute in buffer memory is formed corresponding web displaying interface (hereinafter can describe in detail) to application call.
Step S33, intelligent terminal reads the configuration file being associated with system cache, and judges whether preserve the static Web page resource being associated with network request in system cache according to configuration file;
Be associated with the static Web page resource of network request if do not preserve in system cache, then turn to step S35;
In preferred embodiment of the present invention, intelligent terminal reads local cache policy configuration file, and judges whether to exist in configuration file the url address (relevant information of static Web page resource for preserving in system cache comprised in this configuration file) corresponding to the above-mentioned network request be blocked:
1) if there is the static Web page resource of the url corresponding to this network request in system cache, then intelligent terminal directly reads this static Web page resource, and forms corresponding web displaying interface according to the static Web page resource be read;
2) if there is not the static Web page resource of the url corresponding to this network request in system cache, then the web displaying interface that cannot form application requirement according to the web page resources in intelligent terminal is represented.Now intelligent terminal needs to send above-mentioned network request to long-range service end equally, and namely interception to network request removed by intelligent terminal, application program conventionally in way download corresponding web page resources from service end and form web displaying interface.
Step S34, intelligent terminal reads corresponding static Web page resource from system cache, with rear steering step S4;
Step S35, intelligent terminal sends network request, to ask to obtain corresponding web page resources from service end to long-range service end;
Step S36, intelligent terminal forms corresponding web displaying interface according to the web page resources obtained.
In sum, in technical solution of the present invention, intelligent terminal is when startup has the application program at web displaying interface, first from long-range service end down loading updating packet, to complete the renewal of local static Web page resource, and the static Web page resource through upgrading is put into system cache, to complete the preliminary treatment of the static system resource for this locality.The instruction that inputs according to user of application program subsequently, selects to adopt local static Web page resource or the remote web page resource of service end; According to the static Web page resource of this locality, then intelligent terminal reads the static Web page resource through upgrading from system cache, and forms corresponding web displaying interface according to this web page resources.
In preferred embodiment of the present invention, based on above-mentioned web cache processing method, a kind of web cache treatment system A is also provided, is equally applicable to intelligent terminal.
In preferred embodiment of the present invention, the application program run in above-mentioned intelligent terminal has web displaying interface, realizes transfer of data between intelligent terminal and long-range service end.
Then in preferred embodiment of the present invention, as shown in Figure 4, the concrete structure of above-mentioned web cache treatment system A comprises:
Start unit 1, for starting corresponding application program in intelligent terminal;
Updating block 2, for according to the application program be activated, to the corresponding more new data packets of service end request, upgrades with the static Web page resource of this locality needed for application programs Web page loading display interface;
Buffer unit 3, connects updating block 2, and above-mentioned updating block 2 will pass through the static Web page resource conservation of renewal in buffer unit 3.Then in preferred embodiment of the present invention, above-mentioned buffer unit 3 can be the system cache of intelligent terminal.
Running unit 4, Connection Cache unit 3, for the instruction operation application program inputted according to outside, and from buffer unit 3, read the static Web page resource be saved, form web displaying interface according to the static Web page resource be read and be shown on the display screen of intelligent terminal.
In preferred embodiment of the present invention, as shown in Figure 5, above-mentioned start unit 1 comprises:
Handover module 11, for needing the application program be activated to switch to front stage operation from backstage.
In preferred embodiment of the present invention, as shown in Figure 6, above-mentioned updating block 2 comprises:
First judge module 21, for judging that the web displaying interface of the application program be activated is the need of using local static Web page resource, and exports corresponding first judged result;
Request sending module 22, connect the first judge module 21, for according to the first judged result, when web displaying interface needs use local static Web page resource, send corresponding inquiry request to service end, whether there is corresponding more new data packets with inquiry service end;
Second judge module 23, the Query Result for returning according to the corresponding inquiry request of service end judges whether service end exists corresponding more new data packets, and exports corresponding second judged result;
Update module 24, connect the second judge module 23, for according to the second judged result, service end feedback for for represent can carry out the second notification message upgraded time, download corresponding more new data packets from service end and resolve, according to the more new data packets after resolving static Web page resource upgraded and preserve.
Then in preferred embodiment of the present invention, represent that web displaying interface does not need to use local static Web page resource in the first judged result, or the second judged result represent that service end feeds back for being used to indicate the first notification message not needing to carry out upgrading time, updating block 2 does not upgrade static Web page resource.
In preferred embodiment of the present invention, still as shown in Figure 6, also comprise in above-mentioned updating block 2:
3rd judge module 26, connecting update module 24, for judging the whether successful down loading updating packet of update module 24, and exporting corresponding 3rd judged result;
First control module 25, connects the 3rd judge module 26 and update module 24 respectively, for according to the 3rd judged result, controls the renewal rewards theory of update module stopping to static Web page resource when the failure of update module 24 down loading updating packet.
Then in preferred embodiment of the present invention, still as shown in Figure 4, also comprise in above-mentioned web cache treatment system A:
Clearing cell 5, connects updating block 2, for complete the parsing to more new data packets at updating block 2 after, removes the space of the system cache that this downloading task takies.
In preferred embodiment of the present invention, as shown in Figure 7, above-mentioned running unit 4 comprises:
4th judge module 41, after being run in application program, judging that web displaying interface is the need of using local static Web page resource, and exports corresponding 4th judged result;
Run module 42, connect the 4th judge module 41, for according to the 4th judged result:
When the 4th judged result represents the static Web page resource of needs use this locality, web displaying interface, according to the instruction operation application program of outside input, and from system cache, read static Web page resource; Or
When the 4th judged result represents that web displaying interface does not need to use local static Web page resource, directly to the corresponding remote web page resource of long-range service end acquisition request, to form corresponding web displaying interface.
In preferred embodiment of the present invention, still as shown in Figure 7, also comprise in above-mentioned running unit 4:
Blocking module 43, connects and runs module 42, for the network request to the corresponding web page resources of service end acquisition request that the interception application program when operation module 42 reads static Web page resource from system cache is initiated;
5th judge module 44, for according to the configuration file being associated with buffer unit, judges whether preserve the static Web page resource being associated with network request in buffer unit, and exports corresponding 5th judged result;
Second control module 45, connects blocking module 43 and the 5th judge module 44 respectively, for according to the 5th judged result, when not preserving the static Web page resource being associated with network request in buffer unit 3, controls blocking module 43 and cancels interception to network request;
Then in preferred embodiment of the present invention, above-mentioned running unit 4 according to the static Web page resource read, or according to the corresponding web page resources that network request gets from service end, forms corresponding web displaying interface.
In preferred embodiment of the present invention, also provide a kind of intelligent terminal, wherein adopt web cache processing method above.
In preferred embodiment of the present invention, also provide a kind of intelligent terminal, comprising web cache treatment system above.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.

Claims (16)

1. a web cache processing method, is applicable to intelligent terminal; It is characterized in that, the application program run in described intelligent terminal has web displaying interface;
Described web cache processing method specifically comprises:
Step S1, described intelligent terminal starts described application program;
Step S2, described intelligent terminal downloads corresponding more new data packets, to upgrade according to the static Web page resource of described more new data packets to this locality that described application program loads needed for described web displaying interface and to be stored in system cache to long-range service end request;
Step S3, application program described in the instruction operation that described intelligent terminal inputs according to outside, and from described system cache, read described static Web page resource;
Step S4, described intelligent terminal forms described web displaying interface according to the described static Web page resource be read and shows.
2. web cache processing method as claimed in claim 1, it is characterized in that, described step S1 also comprises, and described application program is switched to front stage operation from backstage by described intelligent terminal, to start described application program.
3. web cache processing method as claimed in claim 1, it is characterized in that, described step S2 specifically comprises:
Step S21, described intelligent terminal judges that the described web displaying interface of the described application program be activated is the need of using local described static Web page resource;
Use described static Web page resource if do not need, then turn to step S25;
Step S22, described intelligent terminal sends inquiry request to described service end, with inquire about described service end whether exist corresponding described in more new data packets;
If do not exist in described service end corresponding described in more new data packets, then described service end issues for representing the first notification message not needing to carry out upgrading, with rear steering step S25 to described intelligent terminal;
Step S23, described service end issues for representing second notification message that can carry out upgrading to described intelligent terminal;
Step S24, described intelligent terminal according to described second notification message from described service end download corresponding described in more new data packets resolving, according to described in after parsing more new data packets described static Web page resource is upgraded and is preserved;
Step S25, described intelligent terminal judges the preliminary treatment success for described static Web page resource, and preliminary treatment completes, with step S3 described in rear steering.
4. web cache processing method as claimed in claim 3, is characterized in that, in described step S24, described intelligent terminal from described service end download corresponding described in more after new data packets, whether successfully judge to download;
If download successfully, then continue to perform described step S24;
If failed download, then judge the renewal failure for described static Web page resource, preliminary treatment completes, with step S3 described in rear steering.
5. web cache processing method as claimed in claim 3, is characterized in that, in described step S24, after described intelligent terminal completes the parsing to described more new data packets, remove the space of the described system cache that this downloading task takies.
6. web cache processing method as claimed in claim 1, is characterized in that, in described step S3, after application program described in the instruction operation that described intelligent terminal inputs according to outside, first performs following judgement:
Judge described application program be run after described web displaying interface the need of using local described static Web page resource:
If desired use, then continue to perform described step S3;
Use if do not need, then described intelligent terminal is to the long-range corresponding web page resources of described service end acquisition request, to form corresponding described web displaying interface.
7. web cache processing method as claimed in claim 1, it is characterized in that, described step S3 specifically comprises:
Step S31, application program described in the instruction operation that described intelligent terminal inputs according to outside, and need at described web displaying interface to turn to step S32 when using local described static Web page resource;
Step S32, the network request to the corresponding web page resources of described service end acquisition request that described application program is initiated tackled by described intelligent terminal;
Step S33, described intelligent terminal reads the configuration file being associated with described system cache, and judges whether to preserve in described system cache the described static Web page resource being associated with described network request according to described configuration file;
Be associated with the described static Web page resource of described network request if do not preserve in described system cache, then turn to step S35;
Step S34, described intelligent terminal reads corresponding described static Web page resource from described system cache, with step S4 described in rear steering;
Step S35, described intelligent terminal sends described network request to long-range described service end, to ask to obtain corresponding described web page resources from described service end;
Step S36, described intelligent terminal forms corresponding described web displaying interface according to the described web page resources obtained.
8. a web cache treatment system, is applicable to intelligent terminal; It is characterized in that, the application program run in described intelligent terminal has web displaying interface, realizes transfer of data between described intelligent terminal and long-range service end;
Then described web cache treatment system comprises:
Start unit, for starting corresponding described application program in described intelligent terminal;
Updating block, for according to the described application program be activated, to the corresponding more new data packets of described service end request, upgrades with the static Web page resource of this locality loaded needed for described web displaying interface described application program;
Buffer unit, connects described updating block, and described updating block will pass through the described static Web page resource conservation of renewal in described buffer unit;
Running unit, connect described buffer unit, for application program described in the instruction operation that inputs according to outside, and from described buffer unit, reading the described static Web page resource be saved, the described static Web page resource according to being read forms described web displaying interface and is shown on the display screen of described intelligent terminal.
9. web cache treatment system as claimed in claim 8, it is characterized in that, described start unit comprises:
Handover module, for needing the described application program be activated to switch to front stage operation from backstage.
10. web cache treatment system as claimed in claim 8, it is characterized in that, described updating block comprises:
First judge module, for judging that the described web displaying interface of the described application program be activated is the need of using local described static Web page resource, and exports corresponding first judged result;
Request sending module, connect described first judge module, for according to described first judged result, when needing to use local described static Web page resource at described web displaying interface, send corresponding inquiry request to described service end, with inquire about described service end whether exist corresponding described in more new data packets;
Second judge module, the Query Result for returning according to the corresponding described inquiry request of described service end judge described service end whether exist corresponding described in more new data packets, and export corresponding second judged result;
Update module, connect described second judge module, for according to described second judged result, described service end feed back for for represent can carry out the second notification message upgraded time, from described service end download corresponding described in more new data packets resolving, according to described in after parsing more new data packets described static Web page resource is upgraded and is preserved;
Represent that described web displaying interface does not need to use local described static Web page resource in described first judged result, or described second judged result represent that described service end feeds back for being used to indicate the first notification message not needing to carry out upgrading time, described updating block does not upgrade described static Web page resource.
11. web cache treatment systems as claimed in claim 10, is characterized in that, also comprise in described updating block:
3rd judge module, connects described update module, for judge described update module whether successfully download described in more new data packets, and export corresponding 3rd judged result;
First control module, connect described 3rd judge module and described update module respectively, for according to described 3rd judged result, control the renewal rewards theory of described update module stopping to described static Web page resource when more new data packets is failed described in described update module is downloaded.
12. web cache treatment systems as claimed in claim 8, is characterized in that, also comprise:
Clearing cell, connects described updating block, for complete the parsing to described more new data packets at described updating block after, removes the space of the described system cache that this downloading task takies.
13. web cache treatment systems as claimed in claim 8, is characterized in that, also comprise in described running unit:
4th judge module, after being run in described application program, judging that described web displaying interface is the need of using local described static Web page resource, and exports corresponding 4th judged result;
Run module, connect described 4th judge module, for according to described 4th judged result:
When described 4th judged result represents the described static Web page resource of needs use this locality, described web displaying interface, application program according to the instruction operation of outside input, and from described system cache, read described static Web page resource; Or
When described 4th judged result represents that described web displaying interface does not need to use local described static Web page resource, directly to the long-range corresponding remote web page resource of described service end acquisition request, to form corresponding described web displaying interface.
14. web cache treatment systems as claimed in claim 13, it is characterized in that, described running unit also comprises:
Blocking module, connects described operation module, for tackling the network request to the corresponding web page resources of described service end acquisition request that described application program is initiated when described operation module reads described static Web page resource from described system cache;
5th judge module, for according to the described configuration file being associated with described buffer unit, judges whether to preserve in described buffer unit the described static Web page resource being associated with described network request, and exports corresponding 5th judged result;
Second control module, connect described blocking module and described 5th judge module respectively, for according to described 5th judged result, when not preserving the described static Web page resource being associated with described network request in described buffer unit, control the interception of described blocking module cancellation to described network request;
Described running unit according to the described static Web page resource read, or according to the corresponding web page resources that described network request gets from described service end, forms corresponding described web displaying interface.
15. 1 kinds of intelligent terminals, is characterized in that, adopt the web cache processing method as described in claim 1-7.
16. 1 kinds of intelligent terminals, is characterized in that, comprise the web cache treatment system as described in claim 8-14.
CN201510650331.4A 2015-10-09 2015-10-09 A kind of web cache processing method and system and intelligent terminal Active CN105208127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510650331.4A CN105208127B (en) 2015-10-09 2015-10-09 A kind of web cache processing method and system and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510650331.4A CN105208127B (en) 2015-10-09 2015-10-09 A kind of web cache processing method and system and intelligent terminal

Publications (2)

Publication Number Publication Date
CN105208127A true CN105208127A (en) 2015-12-30
CN105208127B CN105208127B (en) 2018-09-04

Family

ID=54955550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510650331.4A Active CN105208127B (en) 2015-10-09 2015-10-09 A kind of web cache processing method and system and intelligent terminal

Country Status (1)

Country Link
CN (1) CN105208127B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808305A (en) * 2016-03-29 2016-07-27 北京小米移动软件有限公司 Static resource loading method and device
CN106021512A (en) * 2016-05-24 2016-10-12 乐视控股(北京)有限公司 Page refresh method and apparatus
CN106055720A (en) * 2016-07-18 2016-10-26 北京小米移动软件有限公司 Webpage displaying method and device
CN106201736A (en) * 2016-06-23 2016-12-07 珠海市魅族科技有限公司 Pre-cache method and device thereof
CN106777266A (en) * 2016-12-28 2017-05-31 重庆可兰达科技有限公司 A kind of method for representing rate of being spread its tail based on pre-cache lifting client
CN107357890A (en) * 2017-07-12 2017-11-17 腾讯科技(深圳)有限公司 A kind of web page files processing method, apparatus and system and storage device
CN107528718A (en) * 2016-08-16 2017-12-29 腾讯科技(深圳)有限公司 Obtain the methods, devices and systems of resource
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN108132954A (en) * 2016-11-30 2018-06-08 深圳联友科技有限公司 The localization loading method and device of a kind of html page
CN108256014A (en) * 2018-01-05 2018-07-06 阿里巴巴集团控股有限公司 Page display method and device
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium
CN109376323A (en) * 2018-09-11 2019-02-22 平安科技(深圳)有限公司 Using operation method, device, computer installation and storage medium
CN109446449A (en) * 2018-10-09 2019-03-08 上海连尚网络科技有限公司 A kind of preparatory method and apparatus for refreshing information content of pages
CN114627599A (en) * 2022-03-10 2022-06-14 阿里巴巴(中国)有限公司 Method for realizing business processing of POS terminal, POS terminal and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080162817A1 (en) * 2006-12-29 2008-07-03 Yusuf Batterywala Method and system for caching metadata of a storage system
CN102081650A (en) * 2010-12-29 2011-06-01 上海网达软件有限公司 Method for rapidly displaying user interface of embedded type platform
CN102624895A (en) * 2012-03-09 2012-08-01 亿赞普(北京)科技有限公司 Method and system for processing network service request
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080162817A1 (en) * 2006-12-29 2008-07-03 Yusuf Batterywala Method and system for caching metadata of a storage system
CN102081650A (en) * 2010-12-29 2011-06-01 上海网达软件有限公司 Method for rapidly displaying user interface of embedded type platform
CN102624895A (en) * 2012-03-09 2012-08-01 亿赞普(北京)科技有限公司 Method and system for processing network service request
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808305A (en) * 2016-03-29 2016-07-27 北京小米移动软件有限公司 Static resource loading method and device
CN106021512A (en) * 2016-05-24 2016-10-12 乐视控股(北京)有限公司 Page refresh method and apparatus
CN106201736A (en) * 2016-06-23 2016-12-07 珠海市魅族科技有限公司 Pre-cache method and device thereof
CN106055720A (en) * 2016-07-18 2016-10-26 北京小米移动软件有限公司 Webpage displaying method and device
CN107528718A (en) * 2016-08-16 2017-12-29 腾讯科技(深圳)有限公司 Obtain the methods, devices and systems of resource
CN107528718B (en) * 2016-08-16 2020-03-03 腾讯科技(深圳)有限公司 Method, device and system for acquiring resources
CN108132954A (en) * 2016-11-30 2018-06-08 深圳联友科技有限公司 The localization loading method and device of a kind of html page
CN106777266B (en) * 2016-12-28 2020-05-15 重庆可兰达科技有限公司 Method for improving display rate of client screen opening based on pre-caching
CN106777266A (en) * 2016-12-28 2017-05-31 重庆可兰达科技有限公司 A kind of method for representing rate of being spread its tail based on pre-cache lifting client
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN108287839B (en) * 2017-01-09 2022-01-28 阿里巴巴集团控股有限公司 Page loading method and equipment
CN107357890B (en) * 2017-07-12 2023-03-24 腾讯科技(深圳)有限公司 Webpage file processing method, device and system and storage equipment
CN107357890A (en) * 2017-07-12 2017-11-17 腾讯科技(深圳)有限公司 A kind of web page files processing method, apparatus and system and storage device
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
WO2019041766A1 (en) * 2017-08-30 2019-03-07 深圳壹账通智能科技有限公司 Page resource loading method and apparatus, terminal device and medium
CN107729352B (en) * 2017-08-30 2020-07-31 深圳壹账通智能科技有限公司 Page resource loading method and terminal equipment
CN108256014B (en) * 2018-01-05 2021-06-25 创新先进技术有限公司 Page display method and device
CN108256014A (en) * 2018-01-05 2018-07-06 阿里巴巴集团控股有限公司 Page display method and device
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium
CN109376323A (en) * 2018-09-11 2019-02-22 平安科技(深圳)有限公司 Using operation method, device, computer installation and storage medium
CN109376323B (en) * 2018-09-11 2023-06-16 平安科技(深圳)有限公司 Application running method, device, computer device and storage medium
CN109446449A (en) * 2018-10-09 2019-03-08 上海连尚网络科技有限公司 A kind of preparatory method and apparatus for refreshing information content of pages
CN109446449B (en) * 2018-10-09 2022-05-10 南京尚网网络科技有限公司 Method and equipment for refreshing information page content in advance
CN114627599A (en) * 2022-03-10 2022-06-14 阿里巴巴(中国)有限公司 Method for realizing business processing of POS terminal, POS terminal and server

Also Published As

Publication number Publication date
CN105208127B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN105208127A (en) Webpage caching processing method and system and intelligent terminal
CN102571940B (en) Application program remote installation system, method, intelligent terminal, application server
CN110427385B (en) Block chain data updating method, related node and block chain
CN106302055B (en) Synchronous updating method and system for intelligent equipment state
US20150100955A1 (en) Method and System for Updating Software
CN107291516A (en) A kind of firmware upgrade method and system
CN102214113B (en) Method, device and terminal for upgrading operating system
CN102855152B (en) The method and system of resource file in upgrade applications
WO2019024754A1 (en) Page loading method, device, and system
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN104346198A (en) Information processing apparatus, server apparatus, information processing method, and program
CN109167820A (en) A kind of method for down loading of application program, device, storage medium and terminal
CN108055322B (en) Request message processing method and device
CN105635277A (en) Upgrade packet providing method and device and client side upgrade method and device
CN101997853A (en) Data downloading method and terminal
CN110740155B (en) Request processing method and device in distributed system
CN111600794B (en) Server switching method, terminal, server and storage medium
CN104426976A (en) Online updating device and online updating method for virtual server cluster
CN103024724B (en) Information processing system is unified method, server, mobile terminal
CN105204932A (en) Intelligent terminal and application program control method thereof
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
US10698642B2 (en) Remote management system and information processing method
CN108572837A (en) Method for upgrading software, device, readable storage medium storing program for executing and computer equipment
CN102707976A (en) ATCA (advanced telecom computing architecture) system and method for managing firmware versions by ATCA system
CN110493644A (en) TV applications upgrade method, television terminal and server

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