CN103902696B - A kind of method and device for loading resource file - Google Patents

A kind of method and device for loading resource file Download PDF

Info

Publication number
CN103902696B
CN103902696B CN201410123761.6A CN201410123761A CN103902696B CN 103902696 B CN103902696 B CN 103902696B CN 201410123761 A CN201410123761 A CN 201410123761A CN 103902696 B CN103902696 B CN 103902696B
Authority
CN
China
Prior art keywords
resource file
resource
check code
file
server
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.)
Active
Application number
CN201410123761.6A
Other languages
Chinese (zh)
Other versions
CN103902696A (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201410123761.6A priority Critical patent/CN103902696B/en
Publication of CN103902696A publication Critical patent/CN103902696A/en
Application granted granted Critical
Publication of CN103902696B publication Critical patent/CN103902696B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The invention discloses a kind of method and device for loading resource file, belong to Internet technical field.Methods described includes:When browser loads resource file, inquiry it is local whether the existing resource file;If the existing resource file, the resource file is obtained according to the storage location of the local already present resource file, and load the resource file;If there is no the resource file, the resource file is obtained from server according to the address of the resource file prestored, and load the resource file.The present invention is obtained by the way that the resource file seldom used is preserved in the server needing the used time from server;The capacity of the installation kit of browser is reduced, while also reducing browser space shared after terminal installation.

Description

A kind of method and device for loading resource file
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device for loading resource file.
Background technology
With the development of Internet technology, browse that webpage has become people's work daily or study must by browser The operation of palpus.The resource file of the default page can be pre-saved in browser, when user opens the specific webpage in browser When, the default corresponding resource file of the page can be loaded and show the content of the default page to user.Wherein, the default page can With including:Browser configures the page, or browser initial page etc..
In the prior art, the load mode of the resource file of the default page in browser is:All the default page is corresponding Resource file be pre-stored within the installation kit of browser, user downloads and installed after the browser to terminal, preset the page Corresponding resource file can be stored in the resource file compressed package in terminal according to the compression position pre-set.Work as user When opening the specific webpage of browser, the index in the resource file compressed package called according to required for the specific webpage is searched The storage location of the resource file of loading is needed, and resource file is loaded according to the storage location of each resource file.
During the present invention is realized, inventor has found that prior art at least has problems with:
Because most of default page need not be used for the web page browsing process of user, therefore it will all preset page The corresponding resource file in face, which is all stored in the installation kit of browser, can cause the capacity of installation kit excessively huge, on the one hand under More Internet resources can be taken during load installation kit, on the other hand causing browser, space-consuming is larger after mounting.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of method and dress for loading resource file Put.The technical scheme is as follows:
On the one hand there is provided a kind of method for loading resource file, methods described includes:
When browser loads resource file, inquiry it is local whether the existing resource file;
If the existing resource file, institute is obtained according to the storage location of the local already present resource file Resource file is stated, and loads the resource file;
If there is no the resource file, obtained according to the address of the resource file prestored from server The resource file is taken, and loads the resource file.
It is preferred that, the inquiry it is local whether the existing resource file, including:
In the index of the resource file compressed package of the browser, it is locally according to the inquiry of the mark of the resource file The no existing resource file;And/or,
In the resource location table prestored according to the inquiry of the mark of the resource file it is local whether it is existing described in Resource file.
It is preferred that, the address for the resource file that the basis is prestored obtains the resource text from server Part, including:
The corresponding uniform resource position mark URL address of resource file according to the resource location table prestored, from The resource file is downloaded in server.
It is preferred that, it is described download the resource file from server after, methods described also includes:
By the path information storage of the resource file corresponding path of resource file described in the resource location table In information field, and update the corresponding storage location field of the resource file and be not locally stored.
It is preferred that, the loading resource file, including:
The first check code of the resource file is calculated, and judges pre- in first check code and the resource location table Whether corresponding second check code of the resource file first stored is identical;
If first check code is identical with second check code, the resource file is loaded.
It is preferred that, the resource file for judging first check code and being prestored in the resource location table After whether corresponding second check code is identical, methods described also includes:
If first check code is differed with second check code, the first edition of the resource location table is judged Whether the second edition number of this number resource location table with being stored in the server is identical;
If the first version number is identical with the second edition number, the resource according to the resource location table The corresponding URL addresses of file, download from server and load the resource file;
If the first version number and the second edition number are differed, the resource is downloaded from the server Corresponding 3rd check code of file, second check code in the resource location table is replaced by the 3rd check code;And Judge that whether first check code is identical with the 3rd check code, if the same loads the resource file.
On the other hand there is provided a kind of device for loading resource file, described device includes:
Enquiry module, for when browser loads resource file, inquiry it is local whether the existing resource file;
First load-on module, if for the existing resource file, according to the local already present resource text The storage location of part obtains the resource file, and loads the resource file;
Second load-on module, if for not there is no the resource file, according to the resource file prestored Address the resource file is obtained from server, and load the resource file.
It is preferred that, the enquiry module, including:
First query unit, in the index of the resource file compressed package of the browser, according to resource text The mark inquiry of part it is local whether the existing resource file;
Second query unit, for inquiring about this according to the mark of the resource file in the resource location table prestored The whether existing resource file in ground.
It is preferred that, second load-on module, including:
Download unit, for the corresponding unified resource positioning of the resource file according to the resource location table prestored URL addresses are accorded with, the resource file is downloaded from server.
It is preferred that, described device also includes:
Memory module, for the path information storage of resource file resource described in the resource location table is literary In the corresponding routing information field of part, and update the corresponding storage location field of the resource file and be not locally stored.
It is preferred that, first load-on module, including:
First judging unit, for calculating the first check code of the resource file, and judge first check code with Whether corresponding second check code of the resource file prestored in the resource location table is identical;
First loading unit, if identical with second check code for first check code, loads the money Source file;
Second load-on module, including:
Second judging unit, for calculating the first check code of the resource file, and judge first check code with Whether corresponding second check code of the resource file prestored in the resource location table is identical;
Second loading unit, if identical with second check code for first check code, loads the money Source file.
It is preferred that, first load-on module also includes:
3rd judging unit, if differed for first check code with second check code, judges described Whether the second edition number of resource location table of the first version number of resource location table with being stored in the server is identical;
3rd loading unit, if identical with the second edition number for the first version number, according to the money The corresponding URL addresses of resource file described in the table of source position, download from server and load the resource file;
4th loading unit, if differed for the first version number and the second edition number, from the clothes Corresponding 3rd check code of the resource file is downloaded in business device, the 3rd check code is replaced in the resource location table Second check code;And judge that whether first check code is identical with the 3rd check code, if the same loads institute State resource file;
Second load-on module also includes:
4th judging unit, if differed for first check code with second check code, judges described Whether the second edition number of resource location table of the first version number of resource location table with being stored in the server is identical;
5th loading unit, if identical with the second edition number for the first version number, according to the money The corresponding URL addresses of resource file described in the table of source position, download from server and load the resource file;
6th loading unit, if differed for the first version number and the second edition number, from the clothes Corresponding 3rd check code of the resource file is downloaded in business device, the 3rd check code is replaced in the resource location table Second check code;And judge that whether first check code is identical with the 3rd check code, if the same loads institute State resource file.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By the way that the resource file seldom used is preserved in the server, obtained needing the used time from server; The capacity of the installation kit of browser is reduced, while also reducing browser space shared after terminal installation.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the method flow diagram for the loading resource file that the embodiment of the present invention one is provided;
Fig. 2 is the method flow diagram for the loading resource file that the embodiment of the present invention two is provided;
Fig. 3 is the apparatus structure schematic diagram for the loading resource file that the embodiment of the present invention three is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of method for loading resource file, referring to Fig. 1, method flow includes:
101:When browser loads resource file, inquiry it is local whether existing resource file;
102:If existing resource file, resource text is obtained according to the storage location of local already present resource file Part, and load resource file;
103:If not there is no resource file, obtained according to the address of the resource file prestored from server The resource file is taken, and loads resource file.
The embodiment of the present invention is needing the used time from server by the way that the resource file seldom used is preserved in the server It is middle to be obtained;The capacity of the installation kit of browser is reduced, while it is shared after terminal installation to also reduce browser Space.
Embodiment two
The embodiments of the invention provide a kind of method for loading resource file, referring to Fig. 2, method flow includes:
201:When browser loads resource file, inquiry it is local whether existing resource file;
When user open the operation of specific webpage, according to the mark for the resource file that loading is needed in the page Resource_id, in the index and/or the resource location table that prestores of resource file compressed package in inquiry terminal whether Be stored with resource file.
Wherein, a variety of fields are previously provided with resource location table, including:File_id, the filename of resource file; Resource_id, the mark of resource file;Position, storage location(Local or server);Path, routing information(Locally The URL stored in path in a hard disk, server for resource file is stored for resource file(Uniform Resource Locator, URL)Address);Hash, check code.Also having wherein in the attribute of resource location table is at least included certainly The version number of body.
Further, resource file can be divided into two kinds, and one kind is the corresponding unique file of resource file, such as certain picture The corresponding resource files of A are A.png;Another is that one or more resource files are stored in resource file compressed package, wherein Resource file compressed package is the file of pak suffix, and in such case in resource location table, one pak of a list item correspondence Include all resources text that the pak files are included in the resource_id fields of file, the wherein list item of the pak files The mark of part, is listed in the field in order, and other specification such as storage address is according to the arrangement of the mark of each resource file Sequentially, correspondence stores the routing information of each resource file in path fields.
Wherein, the process of inquiry can be following three kinds of situations:
The first, the mark resource_id of resource file is inquired about in the index of resource file compressed package;Or Person,
Second, the mark resource_id of resource file is inquired about in the index of resource file compressed package, such as Fruit is not inquired, and the mark resource_id of resource file is inquired about containing resource text in the resource location table prestored Whether inquired about in the mark resource_id of part list item, and position fields in the list item local;Or,
The third, the mark resource_id of resource file is inquired about containing money in the resource location table prestored Whether inquired about in the mark resource_id of source file list item, and position fields in the list item local.
Therefore the inquiry mode in step 201 can be specially:
In the index of the resource file compressed package of browser, inquire about local whether existing according to the mark of resource file Resource file;And/or,
In the resource location table prestored according to the mark of resource file inquire about it is local whether existing resource file.
In embodiments of the present invention, in the second exemplified by illustrate, therefore step 201 can be specially:
2011:In the index of the resource file compressed package of browser, according to the mark of resource file inquire about it is local whether Existing resource file.
Wherein, in embodiments of the present invention, the resource file in default page certain customers commonly used, which is stored in, to be browsed In the installation kit of device, it is installed on together with the installation file of browser in terminal.For example:The conventional default page includes user's point When hitting newly-built also Shipping Options Page, the new Shipping Options Page of generation, wherein the contents such as conventional Web side navigation can be included.
If found in the index of resource file compressed package, step 202 is performed;If do not found, perform Step 2012.
2012:If not inquiring, inquire about local according to the mark of resource file in the resource location table prestored Whether existing resource file.
Wherein, specific search procedure is in the resource location table prestored by the mark resource_id of resource file Inquiry is in middle mark resource_id of the inquiry containing resource file list item, and position fields in the list item It is no local.If found in resource location table, step 202 is performed;If do not found, step 203 is performed.
202:If existing resource file, resource text is obtained according to the storage location of local already present resource file Part, and load resource file.
Wherein, when inquiring resource file in the resource location table prestored in the presence of local, in addition it is also necessary to adding Resource file is verified before carrying resource file, the accuracy of the resource file of loading for confirmation.
Therefore if existing resource file in step 202, then according to the storage location of local already present resource file Obtaining the process of resource file can be specially:
2021:Obtain local already present resource file.
2022:First check code of computing resource file, and judge the first check code with being prestored in resource location table Corresponding second check code of resource file it is whether identical.
Wherein, the first check code is identical with the computational algorithm of the second check code, can be hash hashing algorithms, or MD5 (Message Digest Algorithm MD5, Message Digest Algorithm 5)Algorithm etc., herein and is not limited.Wherein The calculating of first check code needs to be calculated before resource file is loaded, and the second check code is generation resource location table When resource file is calculated and resource location table is write in advance.
Second check code is stored in the hash fields in resource location table.
It is identical then to perform step 2023, differ then execution step 2024.
2023:If the first check code is identical with the second check code, resource file is loaded.
2024:If the first check code is differed with the second check code, judge the first version number of resource location table with Whether the second edition number of the resource location table stored in server is identical.
When check code is differed, it may be possible to which the resource file is updated in the server, under server The corresponding check code of the resource file in local resource location table is not updated when carrying;Alternatively possible, being should in download Because mistake occurs in the resource file that network or other problemses are downloaded during resource file, the knot for causing check code checking to differ Really.Accordingly, it would be desirable to confirm whether whether the resource location table in present terminal belong to same with the resource location table in server Version.If version number is identical, illustrates that resource file mistake occurs, it is necessary to re-download, then perform step 2025;If version This number differs, then needs to update the check code of the hash fields of the resource file in the table of Current resource position, and carry out again Verification, performs step 2026.
2025:It is corresponding according to resource file in resource location table if first version number is identical with the second edition number URL addresses, download from server and load resource file.
Re-download after the resource file, the step of re-executing step 2022.
2026:If first version number and the second edition number are differed, resource file is downloaded from server corresponding 3rd check code, by the second check code in the 3rd check code replacement resource position table;And judge the first check code and the 3rd school Whether identical test code, if the same load resource file.
203:If not there is no resource file, obtained according to the address of the resource file prestored from server The resource file is taken, and loads resource file.
Wherein, the path fields in the list item of the mark resource_id containing resource file in resource location table In URL addresses, to server send obtain resource file request, and the reception server return resource file.Wherein, take Business device can be CDN(Content Delivery Network, content distributing network)Server.
Wherein, during resource file is downloaded, if downloaded not successfully, need to judge whether to be that user eliminates Downloading process, if it is abandons the loading to the resource file;Cancel if not user under then prompting user resources file Failure is carried, re-starts and downloads the resource file.
Therefore step 203 is specially:It is fixed according to the corresponding unified resource of resource file in the resource location table prestored Position symbol URL addresses, download resource file from server.
Wherein, after resource file is locally downloading, in addition it is also necessary to carry out school to resource file before loading resource file Test, the accuracy of the resource file of the download for confirmation.
Therefore if not there is no resource file in step 203, then according to the address of the resource file prestored from The resource file is obtained in server, and loads resource file to be specially:
2031:According to the address acquisition resource file of the resource file prestored.
2031:First check code of computing resource file, and judge the first check code with being prestored in resource location table Corresponding second check code of resource file it is whether identical;
2032:If the first check code is identical with the second check code, resource file is loaded.
2033:If the first check code is differed with the second check code, judge the first version number of resource location table with Whether the second edition number of the resource location table stored in server is identical;
2034:It is corresponding according to resource file in resource location table if first version number is identical with the second edition number URL addresses, download from server and load resource file;
2035:If first version number and the second edition number are differed, resource file is downloaded from server corresponding 3rd check code, by the second check code in the 3rd check code replacement resource position table;And judge the first check code and the 3rd school Whether identical test code, if the same load resource file.
204:By the path information storage of resource file in resource location table the corresponding routing information field of resource file In, and update the corresponding storage location field of resource file and be not locally stored.
Preserved for the resource file of download, so that when loading the resource file next time then directly from local loading The resource file.Wherein, the resource file downloaded in step 2026, step 2033, step 2036 is required in resource location table In be updated.
The embodiment of the present invention is needing the used time from server by the way that the resource file seldom used is preserved in the server It is middle to be obtained;The capacity of the installation kit of browser is reduced, while it is shared after terminal installation to also reduce browser Space.
Embodiment three
The embodiments of the invention provide a kind of device for loading resource file, referring to Fig. 3, the device includes:
Enquiry module 301, for when browser loads resource file, inquiry it is local whether existing resource file;
First load-on module 302, if for existing resource file, according to depositing for local already present resource file Position acquisition resource file is stored up, and loads resource file;
Second load-on module 303, if for not there is no resource file, according to the resource file prestored Address obtains the resource file from server, and loads resource file.
Wherein, enquiry module 301, including:
First query unit, in the index of the resource file compressed package of browser, according to the mark of resource file Inquiry it is local whether existing resource file;
Second query unit, for being locally according to the inquiry of the mark of resource file in the resource location table prestored No existing resource file.
Wherein, the second load-on module, including:
Download unit, for according to the corresponding URL of resource file in the resource location table prestored URL addresses, download resource file from server.
Wherein, device also includes:
Memory module 304, for resource file to be corresponding in resource location table by the path information storage of resource file In routing information field, and update the corresponding storage location field of resource file and be not locally stored.
Wherein, the first load-on module 302, including:
First judging unit, for the first check code of computing resource file, and judges the first check code and resource location Whether corresponding second check code of resource file prestored in table is identical;
First loading unit, if identical with the second check code for the first check code, loads resource file;
Wherein, the second load-on module 303, including:
Second judging unit, for the first check code of computing resource file, and judges the first check code and resource location Whether corresponding second check code of resource file prestored in table is identical;
Second loading unit, if identical with the second check code for the first check code, loads resource file.
Wherein, the first load-on module 302 also includes:
3rd judging unit, if differed for the first check code with the second check code, judges resource location table Whether the second edition number of resource location table of the first version number with being stored in server is identical;
3rd loading unit, if identical with the second edition number for first version number, is provided according in resource location table The corresponding URL addresses of source file, download from server and load resource file;
4th loading unit, if differed for first version number and the second edition number, downloads money from server Corresponding 3rd check code of source file, by the second check code in the 3rd check code replacement resource position table;And judge the first school Test code whether identical with the 3rd check code, if the same load resource file;
Wherein, the second load-on module 303 also includes:
4th judging unit, if differed for the first check code with the second check code, judges resource location table Whether the second edition number of resource location table of the first version number with being stored in server is identical;
5th loading unit, if identical with the second edition number for first version number, is provided according in resource location table The corresponding URL addresses of source file, download from server and load resource file;
6th loading unit, if differed for first version number and the second edition number, downloads money from server Corresponding 3rd check code of source file, by the second check code in the 3rd check code replacement resource position table;And judge the first school Test code whether identical with the 3rd check code, if the same load resource file.
The embodiment of the present invention is needing the used time from server by the way that the resource file seldom used is preserved in the server It is middle to be obtained;The capacity of the installation kit of browser is reduced, while it is shared after terminal installation to also reduce browser Space.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of method for loading resource file, it is characterised in that methods described includes:
When browser loads resource file, inquiry it is local whether the existing resource file;
If the existing resource file, the money is obtained according to the storage location of the local already present resource file Source file, and load the resource file;
If there is no the resource file, institute is obtained from server according to the address of the resource file prestored Resource file is stated, and loads the resource file;
Wherein, the loading resource file, including:
The first check code of the resource file is calculated, and is judged in first check code and the resource location table prestored Whether corresponding second check code of the resource file prestored is identical;
If first check code is identical with second check code, the resource file is loaded;
Wherein, the calculating of first check code needs to be calculated before searching resource file is loaded, second school Code is tested to calculate the resource file in advance during the resource location table to generate and write the resource location table.
2. according to the method described in claim 1, it is characterised in that the inquiry it is local whether the existing resource file, Including:
In the index of the resource file compressed package of the browser, whether to be inquired about locally according to the mark of the resource file There is the resource file;And/or,
In the resource location table prestored according to the mark of the resource file inquire about it is local whether the existing resource File.
3. according to the method described in claim 1, it is characterised in that the address for the resource file that the basis is prestored The resource file is obtained from server, including:
The corresponding uniform resource position mark URL address of resource file according to the resource location table prestored, from service The resource file is downloaded in device.
4. method according to claim 3, it is characterised in that it is described download the resource file from server after, Methods described also includes:
By the path information storage of the resource file corresponding routing information of resource file described in the resource location table In field, and update the corresponding storage location field of the resource file to be locally stored.
5. according to the method described in claim 1, it is characterised in that described to judge first check code and the resource location After whether corresponding second check code of the resource file that is prestored in table is identical, methods described also includes:
If first check code is differed with second check code, the first version number of the resource location table is judged Whether the second edition number of the resource location table with being stored in the server is identical;
If the first version number is identical with the second edition number, the resource file according to the resource location table Corresponding URL addresses, download from server and load the resource file;
If the first version number and the second edition number are differed, the resource file is downloaded from the server Corresponding 3rd check code, second check code in the resource location table is replaced by the 3rd check code;And judge Whether first check code is identical with the 3rd check code, if the same loads the resource file.
6. a kind of device for loading resource file, it is characterised in that described device includes:
Enquiry module, for when browser loads resource file, inquiry it is local whether the existing resource file;
First load-on module, if for the existing resource file, according to the local already present resource file Storage location obtains the resource file, and loads the resource file;
Second load-on module, if for not there is no the resource file, according to the ground of the resource file prestored Location obtains the resource file from server, and loads the resource file;
Wherein, first load-on module, including:
First judging unit, for calculating the first check code of the resource file, and judges first check code and advance Whether corresponding second check code of the resource file prestored in the resource location table of storage is identical;
First loading unit, if identical with second check code for first check code, loads the resource text Part;
Second load-on module, including:
Second judging unit, for calculating the first check code of the resource file, and judge first check code with it is described Whether corresponding second check code of the resource file prestored in resource location table is identical;
Second loading unit, if identical with second check code for first check code, loads the resource text Part;
Wherein, the calculating of first check code needs to be calculated before searching resource file is loaded, second school Code is tested to calculate the resource file in advance during the resource location table to generate and write the resource location table.
7. device according to claim 6, it is characterised in that the enquiry module, including:
First query unit, in the index of the resource file compressed package of the browser, according to the resource file Mark inquiry it is local whether the existing resource file;
Second query unit, for being locally according to the inquiry of the mark of the resource file in the resource location table prestored The no existing resource file.
8. device according to claim 6, it is characterised in that second load-on module, including:
Download unit, for the corresponding URL of resource file according to the resource location table prestored URL addresses, download the resource file from server.
9. device according to claim 8, it is characterised in that described device also includes:
Memory module, for by the path information storage of resource file resource file pair described in the resource location table In the routing information field answered, and update the corresponding storage location field of the resource file to be locally stored.
10. device according to claim 7, it is characterised in that first load-on module also includes:
3rd judging unit, if differed for first check code with second check code, judges the resource Whether the second edition number of resource location table of the first version number of position table with being stored in the server is identical;
3rd loading unit, if identical with the second edition number for the first version number, according to the resource-niche The corresponding URL addresses of resource file described in table are put, is downloaded from server and loads the resource file;
4th loading unit, if differed for the first version number and the second edition number, from the server It is middle to download corresponding 3rd check code of the resource file, described in the 3rd check code replacement resource location table Second check code;And judge that whether first check code is identical with the 3rd check code, if the same loads the money Source file;
Second load-on module also includes:
4th judging unit, if differed for first check code with second check code, judges the resource Whether the second edition number of resource location table of the first version number of position table with being stored in the server is identical;
5th loading unit, if identical with the second edition number for the first version number, according to the resource-niche The corresponding URL addresses of resource file described in table are put, is downloaded from server and loads the resource file;
6th loading unit, if differed for the first version number and the second edition number, from the server It is middle to download corresponding 3rd check code of the resource file, described in the 3rd check code replacement resource location table Second check code;And judge that whether first check code is identical with the 3rd check code, if the same loads the money Source file.
CN201410123761.6A 2014-03-28 2014-03-28 A kind of method and device for loading resource file Active CN103902696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410123761.6A CN103902696B (en) 2014-03-28 2014-03-28 A kind of method and device for loading resource file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410123761.6A CN103902696B (en) 2014-03-28 2014-03-28 A kind of method and device for loading resource file

Publications (2)

Publication Number Publication Date
CN103902696A CN103902696A (en) 2014-07-02
CN103902696B true CN103902696B (en) 2017-10-13

Family

ID=50994018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410123761.6A Active CN103902696B (en) 2014-03-28 2014-03-28 A kind of method and device for loading resource file

Country Status (1)

Country Link
CN (1) CN103902696B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102545B (en) * 2014-07-04 2017-12-01 北京理工大学 Mobile augmented reality browser three dimensional resource configures the optimization method with loading
CN106155722A (en) * 2015-04-09 2016-11-23 华为技术有限公司 A kind of software method for updating pages and terminal
CN106569841B (en) * 2015-10-09 2020-04-24 腾讯科技(深圳)有限公司 File loading method and device
CN105426448B (en) * 2015-11-06 2019-04-16 广州华多网络科技有限公司 Interface display method, apparatus and system
CN106933937A (en) * 2015-12-31 2017-07-07 五八同城信息技术有限公司 A kind of webpage deployment method and device, client
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN106569859B (en) * 2016-10-28 2020-10-30 搜游网络科技(北京)有限公司 Target file loading method and device
CN106598567A (en) * 2016-11-03 2017-04-26 广州凯耀资产管理有限公司 Method and device for displaying page elements on terminal equipment
CN107025122B (en) * 2017-04-06 2020-12-22 广州市品高软件股份有限公司 Light application access method and system
CN107172447B (en) * 2017-05-31 2019-12-27 成都博视美达文化传播有限公司 Data loading method and device
CN113536174A (en) * 2017-06-23 2021-10-22 创新先进技术有限公司 Interface loading method, device and equipment
CN108228717A (en) * 2017-12-06 2018-06-29 五八有限公司 The loading method and device of the page
CN108874856B (en) * 2018-04-09 2021-02-09 厦门欣旅通科技有限公司 Page generation system, method and server
CN109358973B (en) * 2018-09-29 2020-12-22 网易(杭州)网络有限公司 Information processing method, system, medium, and computing device
CN109450706B (en) * 2018-12-12 2022-03-15 中国航空工业集团公司西安航空计算技术研究所 FC network configuration data automatic loading method based on arbitration mechanism
CN109756581B (en) * 2019-03-06 2021-11-09 珠海金山网络游戏科技有限公司 File transmission system and method, computing device and storage medium
CN109885408B (en) * 2019-03-13 2022-05-03 四川长虹电器股份有限公司 Lightweight browser resource optimization method based on Android system
CN109889608B (en) * 2019-03-29 2021-12-10 北京金山安全软件有限公司 Dynamic resource loading method and device, electronic equipment and storage medium
CN110262831A (en) * 2019-05-28 2019-09-20 深圳供电局有限公司 A kind of method and system reducing APK volume

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217559A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 A downloading method and downloading system on network data
CN101316226A (en) * 2007-06-01 2008-12-03 阿里巴巴集团控股有限公司 Method, device and system for acquiring resources
WO2012106997A1 (en) * 2011-02-12 2012-08-16 惠州Tcl移动通信有限公司 File accessing method and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316226A (en) * 2007-06-01 2008-12-03 阿里巴巴集团控股有限公司 Method, device and system for acquiring resources
WO2008150725A1 (en) * 2007-06-01 2008-12-11 Alibaba Group Holding Limited Method, equipment and system for resource acquisition
CN101217559A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 A downloading method and downloading system on network data
WO2012106997A1 (en) * 2011-02-12 2012-08-16 惠州Tcl移动通信有限公司 File accessing method and terminal device

Also Published As

Publication number Publication date
CN103902696A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103902696B (en) A kind of method and device for loading resource file
CN105022750B (en) Resource file loading method and device
US20210258404A1 (en) Generation of a media profile
CN104933363B (en) The method and apparatus for detecting malicious file
US8645355B2 (en) Mapping Uniform Resource Locators of different indexes
CN102073512B (en) JAVA cluster application system code loading and upgrading device and method
CN105743945B (en) Document down loading method and system based on switching loading source
CN108319662A (en) Page processing method, device, electronic equipment and readable storage medium storing program for executing
CN104951480B (en) The indexing unit and method that resource stores in a kind of CDN system
CN105824909A (en) Page generation method and device
CN110162964B (en) Method, device and system for checking file tampering
CN107528718B (en) Method, device and system for acquiring resources
CN104714965A (en) Static resource weight removing method, and static resource management method and device
CN107547524A (en) A kind of page detection method, device and equipment
CN108683668A (en) Resource checksum method, apparatus, storage medium and equipment in content distributing network
CN105718276A (en) Method and device for providing APK download and NGINX server
CN108228717A (en) The loading method and device of the page
CN110347955B (en) Resource detection method and device
CN112241298A (en) Page display method and device, storage medium and electronic device
JP2019511060A5 (en)
CN108958855B (en) Page jump method, device and system
CN107220260A (en) The method and device that a kind of page is shown
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN107145528A (en) Update method, the apparatus and system of cache file
CN105701231B (en) Internet resources search system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant