CN107103001A - The methods, devices and systems of target front end resource file are obtained based on browser - Google Patents

The methods, devices and systems of target front end resource file are obtained based on browser Download PDF

Info

Publication number
CN107103001A
CN107103001A CN201610097179.6A CN201610097179A CN107103001A CN 107103001 A CN107103001 A CN 107103001A CN 201610097179 A CN201610097179 A CN 201610097179A CN 107103001 A CN107103001 A CN 107103001A
Authority
CN
China
Prior art keywords
resource file
end resource
file
version number
target
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
CN201610097179.6A
Other languages
Chinese (zh)
Other versions
CN107103001B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610097179.6A priority Critical patent/CN107103001B/en
Publication of CN107103001A publication Critical patent/CN107103001A/en
Application granted granted Critical
Publication of CN107103001B publication Critical patent/CN107103001B/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of methods, devices and systems that target front end resource file is obtained based on browser, belong to network computer technology field.Methods described includes:Obtain the version number of target front end resource file;When the version number of target front end resource file is different from the version number of the original front end resource file, target differential file corresponding with target front end resource file is obtained in the differential file stored from the browser;The original front end resource file and the target differential file are merged and obtain target front end resource file.Described device includes:First acquisition module, the second acquisition module and merging module.The system includes:Browser.The present invention shows preset web by target front end resource file, it is not necessary to obtains original original front end resource file from server again and enters line code rollback display preset web, implementation process simple and fast can be saved the time;It can economize on resources, save bandwidth.

Description

The methods, devices and systems of target front end resource file are obtained based on browser
Technical field
The present invention relates to network computer technology field, and in particular to one kind is obtained before target based on browser Hold the methods, devices and systems of resource file.
Background technology
In order to quickly open preset web in browser, preset web correspondence can be pre-stored in browser Front end resource file.Preset web is constantly updated, and correspondingly front end resource file is also constantly updated, and is Ensure to open preset web how to obtain the effective target front end resource text that can currently use The problem of part is one important.
A kind of method based on browser acquisition target front end resource file conventional at present is as follows:Browser Obtain the released version number (version number for the front end resource file newly issued) of target front end resource file (the original front end resource file of browser is stored in the local version number of original front end resource file Version number);When released version number is consistent with local version number, browser obtains the original of browser storage Beginning front end resource file is used as target front end resource file;When released version number and local version number are inconsistent When, browser splices the increment for obtaining target front end resource file according to released version number and local version number File URL (Uniform Resource Locator, also referred to as URL, web page address), Browser obtains the delta file of target front end resource file according to delta file URL from server, Browser, which merges delta file with original front end resource file, obtains new front end resource file, will be original Original front end resource file is deleted, and new front end resource file is stored in as original front end resource file clear Look at device.
The existing method that target front end resource file is obtained based on browser, by original original front end resource File is deleted, and when browser can not show preset web by existing original front end resource file, is needed Again to obtain original original front end resource file from server and enter line code rollback display preset web, Implementation process is cumbersome, loses time.
The content of the invention
In order to solve problem of the prior art, target front end is obtained based on browser the invention provides one kind The methods, devices and systems of resource file, browser is stored with original front end resource file, and at least One differential file, differential file merges with original front end resource file can form higher or lower than before original Another version of resource file version is held, when browser can not be aobvious by existing original front end resource file When showing preset web, by being obtained from the differential file that browser is stored and target front end resource file The corresponding target differential file of version number, original front end resource file and target differential file are merged Target front end resource file is obtained, preset web is shown by target front end resource file, it is not necessary to again Original original front end resource file is obtained from server and enters line code rollback display preset web, is realized Journey simple and fast, can be saved the time;Again original original front end resource need not be obtained from server File enters line code rollback and shows preset web, can economize on resources, save bandwidth.
In order to solve the above problems, target front end resource text is obtained based on browser the invention discloses one kind The method of part, the browser is stored with original front end resource file, and at least one differential file, The differential file merge with the original front end resource file can be formed higher or lower than it is described it is original before Another version of resource file version is held, methods described includes:
Obtain the version number of target front end resource file;
When the version number and the version number of the original front end resource file of target front end resource file When different, obtained and target front end resource file in the differential file stored from the browser Corresponding target differential file;
The original front end resource file and the target differential file are merged and obtain target front end Resource file.
Further, the version number of target front end resource file is obtained, including:
Receive the available edition number row that the corresponding server of preset web uniform resource position mark URL is returned Table;Wherein, all front ends money that the browser can be used is recorded in the available edition list The version number of source file and each front end resource file and differential file corresponding relation;
Judge whether to include the version number of target front end resource file in the preset web URL;
If including the version number of target front end resource file in the preset web URL, obtain Take the version number of the target front end resource file included in the preset web URL;
If not including the version number of target front end resource file in the preset web URL, The latest edition number in the available edition list is obtained, the latest edition number is regard as the target The version number of front end resource file.
Further, obtain and provided with the target front end in the differential file stored from the browser Before the corresponding goal discrepancy point of source file, in addition to:
It whether there is and target front end resource in the differential file for judging the browser storage The corresponding target differential file of file;
If existed and target front end resource file in the differential file of the browser storage Corresponding target differential file, then obtain the target differential file of the browser storage;
If be not present in the differential file of the browser storage and target front end resource text The corresponding target differential file of part, then obtain the target differential file from server.
Further, methods described also includes:
When the version number and the version number of the original front end resource file of target front end resource file When identical, then the original front end resource file of the browser storage is obtained as the target front end Resource file.
Further, the version number when target front end resource file and the original front end resource file Version number it is identical when before, or when version number and the original front end of target front end resource file Before when the version number of resource file is different, in addition to:
In judging the version number of target front end resource file and whether being the available edition list It is a kind of;
If the version number of target front end resource file is one kind in the available edition list, Then judge target front end resource file version number whether the version with the original front end resource file This number identical;
If the version number of target front end resource file is not one in the available edition list Kind, then the version number of target front end resource file is defined as in the available edition list most New version number, then perform judge target front end resource file version number whether with it is described it is original before The step for holding the version number of resource file identical.
Further, what the corresponding server of reception preset web uniform resource position mark URL was returned can Before version number's list, in addition to:
The preset web URL of user's input is obtained, wherein, included in the preset web URL The version number of target front end resource file;
Browser available edition inquiry request is sent to the corresponding servers of the preset web URL.
Further, what the corresponding server of reception preset web uniform resource position mark URL was returned can Before version number's list, in addition to:
Obtain the preset web URL;
Browser available edition inquiry request is sent to the corresponding servers of the preset web URL;
The server receives the browser available edition inquiry request, obtains the available edition number The corresponding available edition list of inquiry request;
The server judges whether the version number for needing to specify target front end resource file;
If it is required, then the server adds the target front end money in the preset web URL The version number of source file, will add the preset web of the version number of target front end resource file URL, and the available edition list return to the browser;
Correspondingly, the available of the corresponding server return of preset web uniform resource position mark URL is received During version number's list, in addition to:
The preset web URL that the server is returned is received, by the original preset web URL Replace with the preset web URL of return.
In order to solve the above problems, target front end resource is obtained based on browser the invention also discloses one kind The device of file, the browser is stored with original front end resource file, and at least one differential file, The differential file merge with the original front end resource file can be formed higher or lower than it is described it is original before Another version of resource file version is held, described device includes:
First acquisition module, the version number for obtaining target front end resource file;
Second acquisition module, for the version number when target front end resource file and the original front end Obtained when the version number of resource file is different, in the differential file stored from the browser with it is described The corresponding target differential file of target front end resource file;
Merging module, for the original front end resource file and the target differential file to be merged Obtain target front end resource file.
Further, first acquisition module includes:
Receiving unit, is returned for receiving the corresponding server of preset web uniform resource position mark URL Available edition list;Wherein, having recorded the browser in the available edition list can make The version number of all front end resource files and each front end resource file pass corresponding with differential file System;
Judging unit, for judging whether include target front end resource in the preset web URL The version number of file;
First processing units, if for including target front end resource in the preset web URL The version number of file, then obtain the target front end resource file included in the preset web URL Version number;
Second processing unit, if provided for not including the target front end in the preset web URL The version number of source file, then obtain the latest edition number in the available edition list, will be described newest Version number as target front end resource file version number.
Further, described device also includes:
Whether there is in first judge module, the differential file for judging browser storage with The corresponding target differential file of target front end resource file;
First processing module, if for the browser store the differential file in exist with it is described The corresponding target differential file of target front end resource file, then obtain the target of the browser storage Differential file;
Second processing module, if be not present and institute in the differential file stored for the browser The corresponding target differential file of target front end resource file is stated, then obtains the goal discrepancy single cent from server Part.
Further, described device also includes:
3rd acquisition module, for the version number when target front end resource file and the original front end When the version number of resource file is identical, then the original front end resource file of the browser storage is obtained It is used as target front end resource file.
Further, described device also includes:
Second judge module, for the version number when target front end resource file and the original front end Before when the version number of resource file is identical, or when target front end resource file version number with it is described Before when the version number of original front end resource file is different, the version of target front end resource file is judged Number whether it is one kind in the available edition list;
3rd processing module, if the version number for target front end resource file is described to use version One kind in this number list, then judge target front end resource file version number whether with it is described original The version number of front end resource file is identical;
Fourth processing module, if the version number for target front end resource file is not described uses The version number of target front end resource file, then be defined as described to use by one kind in version number's list Latest edition number in version number's list, then notifies the 3rd processing module is performed to judge the target The version number of front end resource file whether the step identical with the version number of the original front end resource file.
Further, first acquisition module also includes:
First acquisition unit, the preset web URL for obtaining user's input, wherein, it is described pre- If including the version number of target front end resource file in webpage URL;
First transmitting element, can for sending browser to the corresponding servers of the preset web URL Use version number's inquiry request.
In order to solve the above problems, target front end resource is obtained based on browser the invention also discloses one kind The system of file, the system includes:Browser;Wherein, the browser is stored with original front end money Source file, and at least one differential file, the differential file are closed with the original front end resource file And another version higher or lower than the original front end resource file version can be formed;
The browser includes:
First acquisition module, the version number for obtaining target front end resource file;
Second acquisition module, for the version number when target front end resource file and the original front end Obtained when the version number of resource file is different, in the differential file stored from the browser with it is described The corresponding target differential file of target front end resource file;
Merging module, for the original front end resource file and the target differential file to be merged Obtain target front end resource file.
Further, first acquisition module includes:
Receiving unit, is returned for receiving the corresponding server of preset web uniform resource position mark URL Available edition list;Wherein, having recorded the browser in the available edition list can make The version number of all front end resource files and each front end resource file pass corresponding with differential file System;
Judging unit, for judging whether include target front end resource in the preset web URL The version number of file;
First processing units, if for including target front end resource in the preset web URL The version number of file, then obtain the target front end resource file included in the preset web URL Version number;
Second processing unit, if provided for not including the target front end in the preset web URL The version number of source file, then obtain the latest edition number in the available edition list, will be described newest Version number as target front end resource file version number.
Further, the system also includes:
Whether there is in first judge module, the differential file for judging browser storage with The corresponding target differential file of target front end resource file;
First processing module, if for the browser store the differential file in exist with it is described The corresponding target differential file of target front end resource file, then obtain the target of the browser storage Differential file;
Second processing module, if be not present and institute in the differential file stored for the browser The corresponding target differential file of target front end resource file is stated, then obtains the goal discrepancy single cent from server Part.
Further, the system also includes:
3rd acquisition module, for the version number when target front end resource file and the original front end When the version number of resource file is identical, then the original front end resource file of the browser storage is obtained It is used as target front end resource file.
Further, the system also includes:
Second judge module, for the version number when target front end resource file and the original front end Before when the version number of resource file is identical, or when target front end resource file version number with it is described Before when the version number of original front end resource file is different, the version of target front end resource file is judged Number whether it is one kind in the available edition list;
3rd processing module, if the version number for target front end resource file is described to use version One kind in this number list, then judge target front end resource file version number whether with it is described original The version number of front end resource file is identical;
Fourth processing module, if the version number for target front end resource file is not described uses The version number of target front end resource file, then be defined as described to use by one kind in version number's list Latest edition number in version number's list, then notifies the 3rd processing module is performed to judge the target The version number of front end resource file whether the step identical with the version number of the original front end resource file.
Further, first acquisition module also includes:
First acquisition unit, the preset web URL for obtaining user's input, wherein, it is described pre- If including the version number of target front end resource file in webpage URL;
First transmitting element, can for sending browser to the corresponding servers of the preset web URL Use version number's inquiry request.
Further, first acquisition module also includes:
Second acquisition unit, for obtaining the preset web URL;
Second transmitting element, can for sending browser to the corresponding servers of the preset web URL Use version number's inquiry request;
The system also includes:The server;
The server includes:
5th processing module, for receiving the browser available edition inquiry request, acquisition is described can With the corresponding available edition list of version number's inquiry request;
3rd judge module, for the version for judging whether to need to specify target front end resource file Number;
Add module, before if it is required, then adding the target in the preset web URL The version number of resource file is held, the default net of the version number of target front end resource file will be added Page URL, and the available edition list return to the browser;
Correspondingly, the receiving unit, is additionally operable to receive the preset web that the server is returned URL, the original preset web URL is replaced with the preset web URL of return.
Compared with prior art, the present invention can be obtained including following technique effect:
1) browser is stored with original front end resource file, and at least one differential file, difference text Part merges with original front end resource file can form another higher or lower than original front end resource file version One version, when browser can not show preset web by existing original front end resource file, passes through Target corresponding with the version number of target front end resource file is obtained in the differential file stored from browser Differential file, original front end resource file and target differential file are merged and obtain target front end resource File, preset web is shown by target front end resource file, it is not necessary to obtain original from server again Original front end resource file enter line code rollback and show preset web, implementation process simple and fast can be with The saving time;Again original original front end resource file need not be obtained from server and enters line code rollback Preset web is shown, can economize on resources, save bandwidth.
2) browser stores original front end resource file and at least one differential file, can lead at any time Cross original front end resource file and each differential file merges the target front end money for obtaining each old version Source file, regression test is carried out by the target front end resource file of each old version.
3) when the front end resource file for having latest edition, the latest edition of front end resource file is uploaded to After CDN server, server can add target front end in the preset web URL of partial view device The version number of resource file be latest edition number so that partial view device can according to latest edition number from CDN server device obtains the front end resource file of latest edition, to the latest edition of front end resource file Code is tested, it is not necessary to which the version number of the front end resource file of whole browsers is just surveyed after updating Examination, can very simply realize test;As long as and latest edition number is added to after the completion of test available Version number's list, it is possible to carry out follow-up using realization issue.
4) server can be by adding the version number of target front end resource file in preset web URL To control the front end resource file of what version of browser, so server can be by the clear of different places Device of looking at is directed to the front end resource file of different versions, a certain class browser can be first directed into new edition This front end resource file etc., can be by adding target front end resource file in preset web URL Version number realize asynchronous refresh, A/B tests, local updating etc., mitigate CDN server pressure.
Certainly, implementing any product of the present invention must be not necessarily required to while reaching all the above skill Art effect.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes one of the present invention Point, schematic description and description of the invention is used to explain the present invention, does not constitute to the present invention's It is improper to limit.In the accompanying drawings:
Fig. 1 is the first method that target front end resource file is obtained based on browser of the embodiment of the present invention Flow chart;
Fig. 2 is second of method based on browser acquisition target front end resource file of the embodiment of the present invention Flow chart;
Fig. 3 is the third method that target front end resource file is obtained based on browser of the embodiment of the present invention Flow chart;
Fig. 4 is the 4th kind of method based on browser acquisition target front end resource file of the embodiment of the present invention Flow chart;
Fig. 5 is the first device based on browser acquisition target front end resource file of the embodiment of the present invention Structural representation;
Fig. 6 is second of device based on browser acquisition target front end resource file of the embodiment of the present invention Structural representation;
Fig. 7 is the third device based on browser acquisition target front end resource file of the embodiment of the present invention Structural representation;
Fig. 8 is the 4th kind of the embodiment of the present invention and the device of target front end resource file is obtained based on browser Structural representation;
Fig. 9 is the first system that target front end resource file is obtained based on browser of the embodiment of the present invention Structural representation;
Figure 10 is second of the embodiment of the present invention to be based on what browser obtained target front end resource file System structural representation;
Figure 11 is that the third of the embodiment of the present invention is based on what browser obtained target front end resource file System structural representation;
Figure 12 is the 4th kind of the embodiment of the present invention System structural representation;
Figure 13 is the 5th kind of the embodiment of the present invention System structural representation.
Embodiment
Embodiments of the present invention are described in detail below in conjunction with drawings and Examples, thereby to the present invention How application technology means can fully understand to solve technical problem and reach the implementation process of technology effect And implement according to this.
In a typical configuration, computing device include one or more processors (CPU), input/ Output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM). Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by Any method or technique come realize information store.Information can be computer-readable instruction, data structure, The module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), Other kinds of random access memory (RAM), read-only storage (ROM), electrically erasable Read-only storage (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape Magnetic rigid disk is stored or other magnetic storage apparatus or any other non-transmission medium, can be by available for storage The information that computing device is accessed.Defined according to herein, computer-readable medium does not include non-temporary electricity The data-signal and carrier wave of brain readable media (transitory media), such as modulation.
Some vocabulary have such as been used to censure specific components among specification and claim.This area skill Art personnel are, it is to be appreciated that hardware manufacturer may call same component with different nouns.This explanation Book and claim be not in the way of the difference of title is used as differentiation component, but with component in function On difference be used as the criterion of differentiation.Such as " the bag in specification in the whole text and claim mentioned in Containing " it is an open language, therefore " include but be not limited to " should be construed to." substantially " refer to receivable In error range, those skilled in the art can solve the technical problem, base in the range of certain error Originally the technique effect is reached.In addition, " coupling " one word is herein comprising any direct and indirect electrically coupling Take over section.Therefore, if a first device is coupled to a second device described in text, described first is represented Device can directly be electrically coupled to the second device, or indirectly electric by other devices or coupling means Property is coupled to the second device.Specification subsequent descriptions is implement the better embodiment of the present invention, so The description is for the purpose of illustrating the rule of the present invention, to be not limited to the scope of the present invention. Protection scope of the present invention is worked as to be defined depending on the appended claims person of defining.
It should also be noted that, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that commodity or system including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include for this commodity or be The intrinsic key element of system.In the absence of more restrictions, limited by sentence " including one ... ... " Key element, it is not excluded that also there is other identical element in the commodity or system including the key element.
Embodiment is described
The realization of the inventive method is described further with an embodiment below.As shown in figure 1, being this A kind of method flow diagram that target front end resource file is obtained based on browser of inventive embodiments, browser Be stored with original front end resource file, and at least one differential file, and differential file is provided with original front end Source file, which merges, can form another version higher or lower than original front end resource file version, this method bag Include:
S101:Obtain the version number of target front end resource file.
Specifically, an original front end resource file is stored in browser in the present embodiment (usually to issue The file of the front end resource file of latest edition before redaction) and multiple different editions number front end resource The differential file of file, differential file merge with original front end resource file can be formed be higher or lower than it is original Another version of front end resource file version.Differential file passes through Diff algorithms, ALTER by server Algorithm or most long substring comparison algorithm (Longest Common Subsequence) etc. are generated, difference The version number of front end resource file of the number of file with that can use is relevant, if the front end that can be used The version number of resource file is N (natural number), then the number of differential file is N-1.Pass through an original Beginning front end resource file and multiple different differential files, can obtain the front end resource text of multiple versions Part, sets available edition interface, the different available edition of available edition interface correspondence will in server end The version number (including browser can use the version numbers of all front end resource files) of available edition, And front end resource file is stored in available edition list with differential file corresponding relation and made for selection With so as to use the version that all front end resource files that browser can be used are recorded in version number's list This number and each front end resource file and differential file corresponding relation.And subsequently can be according to pre- If time interval inquiry available edition interface is updated to available edition list, or is connect in available edition Update notification is sent after oral replacement to be updated available edition list.The version of target front end resource file This number be the currently selected front end resource file for taking and using version number.
By an original front end resource file and multiple different differential files, multiple versions can be obtained Front end resource file, for example:Original front end resource file is original front end resource file 0, and issue is new After version front end resource file 1, browser obtains the information using redaction front end resource file, from clothes Business device obtains the differential file 0-1 of redaction front end resource file 1 and original front end resource file 0 and deposited Original front end resource file 0 is merged in browser and obtains original front end resource by storage with differential file 0-1 File 1, original front end resource file 0 is updated and (is referred to as updating for the first time for the ease of description) before being original End resource file 1 is simultaneously stored in browser, and original front end resource file is original front end after updating for the first time Resource file 1 (now original front end resource file 0 is deleted), now corresponds to original front end resource text The differential file of part 1 and original front end resource file 0 is differential file 0-1.Update similar with first time, Second update after original front end resource file be original front end resource file 2 (now original front end resource File 1 is deleted), now correspond to the difference of original front end resource file 2 and original front end resource file 1 Single cent part is differential file 1-2.Hereafter, if in advance using the front end resource file of version 2, passed through Original front end resource file 2 can be realized, if passed through in advance using the front end resource file of version 1 Original front end resource file 2 and differential file 1-2, which merge, to be realized, if in advance using before version 0 Resource file is held, then is merged by original front end resource file 2, differential file 1-2 and differential file 0-1 It can realize.
S102:When the version number of target front end resource file is different from the version number of original front end resource file When, goal discrepancy single cent corresponding with target front end resource file is obtained from the differential file of browser storage Part.
Specifically, target differential file corresponding with target front end resource file, as in above S101 institutes In row illustrated example, the version number of target front end resource file is 0, and what it is when now browser storage is former Beginning front end resource file 2, then now resource file corresponding target differential file in target front end is difference text Part 1-2 and differential file 0-1.The version number of target front end resource file is 1, and when now, browser is stored Be original front end resource file 2, then now resource file corresponding target differential file in target front end is Differential file 1-2.
S103:Original front end resource file and target differential file are merged and obtain target front end resource File.
Specifically, when target front end resource file version number and original front end resource file version number not Meanwhile, the version number of target front end resource file is above or less than original front end resource file version Another version, obtain and target front end resource text in the differential file that can be at this time stored from browser The corresponding target differential file of part, original front end resource file is merged with target differential file and obtained Target front end resource file.Such as:Original front end resource file 1 merges with differential file 0-1 obtains target The original front end resource file 1 of front end resource file 0. merges with differential file 1-2 obtains target front end resource File 2.
Specifically, in order to ensure that the application can be better achieved, when browser is idle, it can carry out Operation is updated, following one kind can at least be included by updating operation:
1) version number of the differential file of Query Browser storage, according to described in available edition list The version number of all front end resource files that can use of browser and each front end resource file with Differential file corresponding relation, judges to whether there is available edition list in the differential file of browser storage In do not have record differential file, if there is then delete browser storage available edition list in do not have Differential file on the books.
2) version number of the differential file of Query Browser storage, according to described in available edition list The version number of all front end resource files that can use of browser and each front end resource file with Differential file corresponding relation, judges whether the differential file browser described in available edition list does not have Storage, if browser is not stored, the differential file that browser is not stored is asked to server, And it is stored in browser after the differential file that the browser for getting server return is not stored.
3) version number of the front end resource file of Query Browser storage, according in available edition list The version number of the front end resource file of the browser storage of record, judges the front end resource text of browser storage Whether part is identical with the front end resource file of the browser storage described in available edition list, if clear The front end resource file of device of looking at storage and the front end of the browser storage described in available edition list are provided Source file is different, then the front end money of the browser storage described in available edition list is obtained from server Source file, the front end resource file of the browser storage described in available edition list is stored in and browsed Device.
Specifically, referring to Fig. 2, obtaining the version number of target front end resource file includes:
S201:Receive the available version that the corresponding server of preset web uniform resource position mark URL is returned This number list.
Wherein, all front end resource files that browser can be used are recorded in available edition list Version number and each front end resource file and differential file corresponding relation.
Specifically, the available of the corresponding server return of preset web uniform resource position mark URL is received Before version number's list, in addition to:
The preset web URL of user's input is obtained, wherein, target front end is included in preset web URL The version number of resource file;
Browser available edition inquiry request is sent to the corresponding servers of preset web URL.
Wherein, during user's input preset web URL, before the target that can be specified by URL Hold the version number of resource file.URL such as page script is http://example.com, user can be with By way of adding inquiry string (query string), being become http://example.com Version=123, the front end resource file that use version number to be " 123 " is specified equivalent to by URL. So as to which browser can be determined with the front end resource file of what version by user oneself.
Or, specifically, receive what the corresponding server of preset web uniform resource position mark URL was returned Before available edition list, in addition to:
Obtain preset web URL;
Browser available edition inquiry request is sent to the corresponding servers of preset web URL;
Server receives browser available edition inquiry request, obtains available edition inquiry request correspondence Available edition list;
Server judges whether the version number for needing to specify target front end resource file;
If it is required, then server adds the version of target front end resource file in preset web URL Number, the preset web URL of the version number of target front end resource file, and available edition number row will be added Table returns to browser;
Correspondingly, the available of the corresponding server return of preset web uniform resource position mark URL is received During version number's list, in addition to:
The preset web URL that the reception server is returned, return is replaced with by original preset web URL Preset web URL.
Specifically, server can also by URL specify target front end resource file version This number.Can judge when server judges whether to need to specify the version number of target front end resource file Whether version number that user specify is contained in preset web URL, if included in preset web URL The version number that user specifies, it is determined that the version number of target front end resource file need not be specified;If pre- If there is no the version number specified comprising user in webpage URL, it is determined that need to specify target front end resource The version number of file.When server judges whether to need to specify the version number of target front end resource file, Can be that server determines whether to specify the instruction of the version number of target front end resource file, if referring to Set the goal front end resource file version number instruction, then no matter in preset web URL whether comprising using The version number that family is specified, specifies the version number of target front end resource file by server, such as in service Device lane database safeguards version number's management table, wherein record has such field:Version number's character string, Issue date, whether force indicated release number etc., server gets available edition inquiry request correspondence Available edition list after, this version number's management table is checked, if it find that current have pressure to specify version The record of this number 123, just adds version=123 inquiry string in preset web URL (query string).So as to which browser client can also be by taking with the front end resource file of what version Business device is determined.
S202:Judge whether to include the version number of target front end resource file in preset web URL, such as The version number of target front end resource file is included in fruit preset web URL, then performs S203;If pre- If not including the version number of target front end resource file in webpage URL, then S203 is performed.
S203:The version number of the target front end resource file included in preset web URL is obtained, then Perform S102.
S204:The latest edition number in available edition list is obtained, using latest edition number as before target The version number of resource file is held, S102 is then performed.
Specifically, obtained referring to Fig. 3, in the differential file stored from browser and target front end resource text Before the corresponding goal discrepancy point of part, in addition to:
S301:Judge in the differential file of browser storage with the presence or absence of corresponding with target front end resource file Target differential file, if browser storage differential file in exist and target front end resource file pair The target differential file answered, then perform S302;If be not present and mesh in the differential file of browser storage The corresponding target differential file of front end resource file is marked, then performs S303.
S302:The target differential file of browser storage is obtained, 103 are then performed.
S303:Target differential file is obtained from server, 103 are then performed.
Specifically, obtaining target differential file from server includes:
Target differential file, which is sent, to server obtains request;So that server receives target differential file Obtain after request, inquiry whether there is target differential file, if it is present returning to target to browser Differential file URL, if it does not exist, then generation target differential file, target differential file is uploaded to CDN (Content Delivery Network, content distributing network) server, receives CDN server The target differential file URL of return, stores and returns to target differential file URL to browser.
The target differential file URL that server is returned is obtained, is inquired according to target differential file URL CDN server, downloads target differential file from CDN server.
Specifically, this method also includes:Version number and original front end resource when target front end resource file When the version number of file is identical, then the original front end resource file for obtaining browser storage is used as target front end Resource file, correspondingly, referring to Fig. 4, when version number and the original front end of target front end resource file are provided Before when the version number of source file is identical, or when the version number of target front end resource file provides with original front end Before when the version number of source file is different, in addition to:
S401:Judge target front end resource file version number whether be in available edition list one Kind, if the version number of target front end resource file is one kind in available edition list, perform S402;If the version number of target front end resource file is not one kind in available edition list, hold Row S403.
S402:Judge target front end resource file version number whether the version with original front end resource file It is number identical, if the version number of target front end resource file and version number's phase of original front end resource file Together, then S404 is performed;If the version number of target front end resource file and the version of original front end resource file This number difference, then perform S102.
S403:The version number of target front end resource file is defined as to the latest edition in available edition list This number, then perform S402.
S404:The original front end resource file of browser storage is obtained as target front end resource file, so After terminate.
Specifically, obtain after the resource file of target front end, the resource generation in the resource file of performance objective front end Code.
The method that target front end resource file is obtained based on browser described in the present embodiment, browser storage There are original front end resource file, and at least one differential file, differential file and original front end resource text Part, which merges, can form another version higher or lower than original front end resource file version, when browser can not When showing preset web by existing original front end resource file, pass through the difference text stored from browser Target differential file corresponding with the version number of target front end resource file is obtained in part, original front end is provided Source file merges with target differential file and obtains target front end resource file, passes through target front end resource File shows preset web, it is not necessary to obtains original original front end resource file from server again and carries out Code rollback shows preset web, and implementation process simple and fast can be saved the time;Need not again from Server obtains original original front end resource file and enters line code rollback display preset web, can save Resource, saving bandwidth.Browser stores original front end resource file and at least one differential file, can To merge the mesh for obtaining each old version by original front end resource file and each differential file at any time Front end resource file is marked, regression test is carried out by the target front end resource file of each old version.When There is the front end resource file of latest edition, the latest edition of front end resource file is uploaded into CDN service After device, server can add target front end resource file in the preset web URL of partial view device Version number be latest edition number so that partial view device can be according to latest edition number from CDN service Device device obtains the front end resource file of latest edition, and the code of the latest edition of front end resource file is carried out Test, it is not necessary to which the version number of the front end resource file of whole browsers is just tested after updating, can be with Very simply realize test;As long as and latest edition number is added into available edition number row after the completion of test Table, it is possible to carry out follow-up using realization issue.Server can be by adding in preset web URL Plus the version number of target front end resource file controls the front end resource file of what version of browser, institute With server the browser of different places can be directed to different versions front end resource file, can be with A certain class browser is first directed to front end resource file of redaction etc., can be by preset web The version number that target front end resource file is added in URL realizes asynchronous refresh, A/B tests, local updating Deng mitigation CDN server pressure.
As shown in figure 5, being that one kind of the embodiment of the present invention is based on browser and obtains target front end resource file Structure drawing of device, browser is stored with original front end resource file, and at least one differential file, Differential file merges with original front end resource file can form higher or lower than original front end resource file version This another version, the device includes:
First acquisition module 501, the version number for obtaining target front end resource file;
Second acquisition module 502, for the version number when target front end resource file and original front end resource When the version number of file is different, obtained and target front end resource file in the differential file stored from browser Corresponding target differential file;
Merging module 503, is obtained for original front end resource file to be merged with target differential file Target front end resource file.
Further, the first acquisition module 501 includes:
Receiving unit, is returned for receiving the corresponding server of preset web uniform resource position mark URL Available edition list;Wherein, record that browser can use in available edition list is all The version number of front end resource file and each front end resource file and differential file corresponding relation;
Judging unit, the version for judging whether to include target front end resource file in preset web URL This number;
First processing units, if the version for including target front end resource file in preset web URL This number, then obtain the version number of the target front end resource file included in preset web URL;
Second processing unit, if for not including target front end resource file in preset web URL Version number, then obtain the latest edition number in available edition list, using latest edition number as before target Hold the version number of resource file.
Further, referring to Fig. 6, the device also includes:
It whether there is and target in first judge module 504, the differential file for judging browser storage The corresponding target differential file of front end resource file;
First processing module 505, if existed and target front end in the differential file stored for browser The corresponding target differential file of resource file, then obtain the target differential file of browser storage;
Second processing module 506, if for browser store differential file in be not present with before target The corresponding target differential file of resource file is held, then obtains target differential file from server.
Further, referring to Fig. 7, the device also includes:
3rd acquisition module 507, for the version number when target front end resource file and original front end resource When the version number of file is identical, then the original front end resource file for obtaining browser storage is used as target front end Resource file.
Further, referring to Fig. 8, the device also includes:
Second judge module 508, for the version number when target front end resource file and original front end resource Before when the version number of file is identical, or the version number when target front end resource file and original front end resource Before when the version number of file is different, whether the version number for judging target front end resource file is available edition One kind in number list;
3rd processing module 509, if the version number for target front end resource file is available edition number One kind in list, then judge target front end resource file version number whether with original front end resource file Version number it is identical;
Fourth processing module 510, if the version number for target front end resource file is not available edition The version number of target front end resource file, then be defined as in available edition list by one kind in number list Latest edition number, then notify the 3rd processing module is performed to judge the version number of target front end resource file Whether the step identical with the version number of original front end resource file.
Further, the first acquisition module also includes:
First acquisition unit, the preset web URL for obtaining user's input, wherein, preset web The version number of target front end resource file is included in URL;
First transmitting element, version can be used for sending browser to the corresponding servers of preset web URL This number inquiry request.
The device that target front end resource file is obtained based on browser described in the present embodiment, browser storage There are original front end resource file, and at least one differential file, differential file and original front end resource text Part, which merges, can form another version higher or lower than original front end resource file version, when browser can not When showing preset web by existing original front end resource file, pass through the difference text stored from browser Target differential file corresponding with the version number of target front end resource file is obtained in part, original front end is provided Source file merges with target differential file and obtains target front end resource file, passes through target front end resource File shows preset web, it is not necessary to obtains original original front end resource file from server again and carries out Code rollback shows preset web, and implementation process simple and fast can be saved the time;Need not again from Server obtains original original front end resource file and enters line code rollback display preset web, can save Resource, saving bandwidth.Browser stores original front end resource file and at least one differential file, can To merge the mesh for obtaining each old version by original front end resource file and each differential file at any time Front end resource file is marked, regression test is carried out by the target front end resource file of each old version.When There is the front end resource file of latest edition, the latest edition of front end resource file is uploaded into CDN service After device, server can add target front end resource file in the preset web URL of partial view device Version number be latest edition number so that partial view device can be according to latest edition number from CDN service Device device obtains the front end resource file of latest edition, and the code of the latest edition of front end resource file is carried out Test, it is not necessary to which the version number of the front end resource file of whole browsers is just tested after updating, can be with Very simply realize test;As long as and latest edition number is added into available edition number row after the completion of test Table, it is possible to carry out follow-up using realization issue.Server can be by adding in preset web URL Plus the version number of target front end resource file controls the front end resource file of what version of browser, institute With server the browser of different places can be directed to different versions front end resource file, can be with A certain class browser is first directed to front end resource file of redaction etc., can be by preset web The version number that target front end resource file is added in URL realizes asynchronous refresh, A/B tests, local updating Deng mitigation CDN server pressure.
As shown in figure 9, being that one kind of the embodiment of the present invention is based on browser and obtains target front end resource file System construction drawing, system includes:Browser 60;Wherein, browser is stored with original front end resource text Part, and at least one differential file, differential file merge to be formed with original front end resource file and are higher than Or less than another version of original front end resource file version;
Browser 60 includes:
First acquisition module 601, the version number for obtaining target front end resource file;
Second acquisition module 602, for the version number when target front end resource file and original front end resource When the version number of file is different, obtained and target front end resource file in the differential file stored from browser Corresponding target differential file;
Merging module 603, is obtained for original front end resource file to be merged with target differential file Target front end resource file.
Further, the first acquisition module 601 includes:
Receiving unit, is returned for receiving the corresponding server of preset web uniform resource position mark URL Available edition list;Wherein, record that browser can use in available edition list is all The version number of front end resource file and each front end resource file and differential file corresponding relation;
Judging unit, the version for judging whether to include target front end resource file in preset web URL This number;
First processing units, if the version for including target front end resource file in preset web URL This number, then obtain the version number of the target front end resource file included in preset web URL;
Second processing unit, if for not including target front end resource file in preset web URL Version number, then obtain the latest edition number in available edition list, using latest edition number as before target Hold the version number of resource file.
Further, referring to Figure 10, the system also includes:
It whether there is and target in first judge module 604, the differential file for judging browser storage The corresponding target differential file of front end resource file;
First processing module 605, if existed and target front end in the differential file stored for browser The corresponding target differential file of resource file, then obtain the target differential file of browser storage;
Second processing module 606, if for browser store differential file in be not present with before target The corresponding target differential file of resource file is held, then obtains target differential file from server.
Further, referring to Figure 11, the system also includes:
3rd acquisition module 607, for the version number when target front end resource file and original front end resource When the version number of file is identical, then the original front end resource file for obtaining browser storage is used as target front end Resource file.
Further, referring to Figure 12, the system also includes:
Second judge module 608, for the version number when target front end resource file and original front end resource Before when the version number of file is identical, or the version number when target front end resource file and original front end resource Before when the version number of file is different, whether the version number for judging target front end resource file is available edition One kind in number list;
3rd processing module 609, if the version number for target front end resource file is available edition number One kind in list, then judge target front end resource file version number whether with original front end resource file Version number it is identical;
Fourth processing module 610, if the version number for target front end resource file is not available edition The version number of target front end resource file, then be defined as in available edition list by one kind in number list Latest edition number, then notify the 3rd processing module is performed to judge the version number of target front end resource file Whether the step identical with the version number of original front end resource file.
Further, the first acquisition module 601 also includes:
First acquisition unit, the preset web URL for obtaining user's input, wherein, preset web The version number of target front end resource file is included in URL;
First transmitting element, version can be used for sending browser to the corresponding servers of preset web URL This number inquiry request.
Further, referring to Figure 13, the first acquisition module also includes:
Second acquisition unit, for obtaining preset web URL;
Second transmitting element, version can be used for sending browser to the corresponding servers of preset web URL This number inquiry request;
The system also includes:Server 70;
Server 70 includes:
5th processing module 701, for receiving browser available edition inquiry request, acquisition can use version The corresponding available edition list of this number inquiry request;
3rd judge module 702, for the version number for judging whether to need to specify target front end resource file;
Add module 703, for if it is required, then adding target front end resource in preset web URL The version number of file, will add the preset web URL, Yi Jike of the version number of target front end resource file Browser is returned to version number's list;
Correspondingly, receiving unit, is additionally operable to the preset web URL of the reception server return, will be original Preset web URL replaces with the preset web URL of return.
The system that target front end resource file is obtained based on browser described in the present embodiment, browser storage There are original front end resource file, and at least one differential file, differential file and original front end resource text Part, which merges, can form another version higher or lower than original front end resource file version, when browser can not When showing preset web by existing original front end resource file, pass through the difference text stored from browser Target differential file corresponding with the version number of target front end resource file is obtained in part, original front end is provided Source file merges with target differential file and obtains target front end resource file, passes through target front end resource File shows preset web, it is not necessary to obtains original original front end resource file from server again and carries out Code rollback shows preset web, and implementation process simple and fast can be saved the time;Need not again from Server obtains original original front end resource file and enters line code rollback display preset web, can save Resource, saving bandwidth.Browser stores original front end resource file and at least one differential file, can To merge the mesh for obtaining each old version by original front end resource file and each differential file at any time Front end resource file is marked, regression test is carried out by the target front end resource file of each old version.When There is the front end resource file of latest edition, the latest edition of front end resource file is uploaded into CDN service After device, server can add target front end resource file in the preset web URL of partial view device Version number be latest edition number so that partial view device can be according to latest edition number from CDN service Device device obtains the front end resource file of latest edition, and the code of the latest edition of front end resource file is carried out Test, it is not necessary to which the version number of the front end resource file of whole browsers is just tested after updating, can be with Very simply realize test;As long as and latest edition number is added into available edition number row after the completion of test Table, it is possible to carry out follow-up using realization issue.Server can be by adding in preset web URL Plus the version number of target front end resource file controls the front end resource file of what version of browser, institute With server the browser of different places can be directed to different versions front end resource file, can be with A certain class browser is first directed to front end resource file of redaction etc., can be by preset web The version number that target front end resource file is added in URL realizes asynchronous refresh, A/B tests, local updating Deng mitigation CDN server pressure.
The device, system are corresponding with foregoing method flow description, and weak point refers to above method flow Narration, no longer repeat one by one.
Some preferred embodiments of the present invention have shown and described in described above, but as it was previously stated, should manage The solution present invention is not limited to form disclosed herein, is not to be taken as the exclusion to other embodiment, And available for it is various other combination, modification and environment, and can in invention contemplated scope described herein, It is modified by the technology or knowledge of above-mentioned teaching or association area.And those skilled in the art are carried out changes Dynamic and change does not depart from the spirit and scope of the present invention, then all should appended claims of the present invention protection In the range of.

Claims (20)

1. a kind of method that target front end resource file is obtained based on browser, it is characterised in that described Browser is stored with original front end resource file, and at least one differential file, the differential file with The original front end resource file, which merges to be formed, is higher or lower than the original front end resource file version Another version, methods described includes:
Obtain the version number of target front end resource file;
When the version number and the version number of the original front end resource file of target front end resource file When different, obtained and target front end resource file in the differential file stored from the browser Corresponding target differential file;
The original front end resource file and the target differential file are merged and obtain target front end Resource file.
2. the method as described in claim 1, it is characterised in that obtain target front end resource file Version number, including:
Receive the available edition number row that the corresponding server of preset web uniform resource position mark URL is returned Table;Wherein, all front ends money that the browser can be used is recorded in the available edition list The version number of source file and each front end resource file and differential file corresponding relation;
Judge whether to include the version number of target front end resource file in the preset web URL;
If including the version number of target front end resource file in the preset web URL, obtain Take the version number of the target front end resource file included in the preset web URL;
If not including the version number of target front end resource file in the preset web URL, The latest edition number in the available edition list is obtained, the latest edition number is regard as the target The version number of front end resource file.
3. method as claimed in claim 2, it is characterised in that from described in browser storage In differential file before acquisition goal discrepancy point corresponding with target front end resource file, in addition to:
It whether there is and target front end resource in the differential file for judging the browser storage The corresponding target differential file of file;
If existed and target front end resource file in the differential file of the browser storage Corresponding target differential file, then obtain the target differential file of the browser storage;
If be not present in the differential file of the browser storage and target front end resource text The corresponding target differential file of part, then obtain the target differential file from server.
4. method as claimed in claim 3, it is characterised in that methods described also includes:
When the version number and the version number of the original front end resource file of target front end resource file When identical, then the original front end resource file of the browser storage is obtained as the target front end Resource file.
5. method as claimed in claim 4, it is characterised in that when target front end resource file Version number it is identical with the version number of the original front end resource file when before, or when the target front end Before when the version number of resource file is different from the version number of the original front end resource file, in addition to:
In judging the version number of target front end resource file and whether being the available edition list It is a kind of;
If the version number of target front end resource file is one kind in the available edition list, Then judge target front end resource file version number whether the version with the original front end resource file This number identical;
If the version number of target front end resource file is not one in the available edition list Kind, then the version number of target front end resource file is defined as in the available edition list most New version number, then perform judge target front end resource file version number whether with it is described it is original before The step for holding the version number of resource file identical.
6. the method as described in claim 2-5 any claims, it is characterised in that receive default net Before the available edition list that the corresponding server of page uniform resource position mark URL is returned, in addition to:
The preset web URL of user's input is obtained, wherein, included in the preset web URL The version number of target front end resource file;
Browser available edition inquiry request is sent to the corresponding servers of the preset web URL.
7. the method as described in claim 2-5 any claims, it is characterised in that receive default net Before the available edition list that the corresponding server of page uniform resource position mark URL is returned, in addition to:
Obtain the preset web URL;
Browser available edition inquiry request is sent to the corresponding servers of the preset web URL;
The server receives the browser available edition inquiry request, obtains the available edition number The corresponding available edition list of inquiry request;
The server judges whether the version number for needing to specify target front end resource file;
If it is required, then the server adds the target front end money in the preset web URL The version number of source file, will add the preset web of the version number of target front end resource file URL, and the available edition list return to the browser;
Correspondingly, the available of the corresponding server return of preset web uniform resource position mark URL is received During version number's list, in addition to:
The preset web URL that the server is returned is received, by the original preset web URL Replace with the preset web URL of return.
8. a kind of device that target front end resource file is obtained based on browser, it is characterised in that described Browser is stored with original front end resource file, and at least one differential file, the differential file with The original front end resource file, which merges to be formed, is higher or lower than the original front end resource file version Another version, described device includes:
First acquisition module, the version number for obtaining target front end resource file;
Second acquisition module, for the version number when target front end resource file and the original front end Obtained when the version number of resource file is different, in the differential file stored from the browser with it is described The corresponding target differential file of target front end resource file;
Merging module, for the original front end resource file and the target differential file to be merged Obtain target front end resource file.
9. device as claimed in claim 8, it is characterised in that first acquisition module includes:
Receiving unit, is returned for receiving the corresponding server of preset web uniform resource position mark URL Available edition list;Wherein, having recorded the browser in the available edition list can make The version number of all front end resource files and each front end resource file pass corresponding with differential file System;
Judging unit, for judging whether include target front end resource in the preset web URL The version number of file;
First processing units, if for including target front end resource in the preset web URL The version number of file, then obtain the target front end resource file included in the preset web URL Version number;
Second processing unit, if provided for not including the target front end in the preset web URL The version number of source file, then obtain the latest edition number in the available edition list, will be described newest Version number as target front end resource file version number.
10. device as claimed in claim 8, it is characterised in that described device also includes:
Whether there is in first judge module, the differential file for judging browser storage with The corresponding target differential file of target front end resource file;
First processing module, if for the browser store the differential file in exist with it is described The corresponding target differential file of target front end resource file, then obtain the target of the browser storage Differential file;
Second processing module, if be not present and institute in the differential file stored for the browser The corresponding target differential file of target front end resource file is stated, then obtains the goal discrepancy single cent from server Part.
11. device as claimed in claim 10, it is characterised in that described device also includes:
3rd acquisition module, for the version number when target front end resource file and the original front end When the version number of resource file is identical, then the original front end resource file of the browser storage is obtained It is used as target front end resource file.
12. device as claimed in claim 11, it is characterised in that described device also includes:
Second judge module, for the version number when target front end resource file and the original front end Before when the version number of resource file is identical, or when target front end resource file version number with it is described Before when the version number of original front end resource file is different, the version of target front end resource file is judged Number whether it is one kind in the available edition list;
3rd processing module, if the version number for target front end resource file is described to use version One kind in this number list, then judge target front end resource file version number whether with it is described original The version number of front end resource file is identical;
Fourth processing module, if the version number for target front end resource file is not described uses The version number of target front end resource file, then be defined as described to use by one kind in version number's list Latest edition number in version number's list, then notifies the 3rd processing module is performed to judge the target The version number of front end resource file whether the step identical with the version number of the original front end resource file.
13. the device as described in claim 9-12 any claims, it is characterised in that described first Acquisition module also includes:
First acquisition unit, the preset web URL for obtaining user's input, wherein, it is described pre- If including the version number of target front end resource file in webpage URL;
First transmitting element, can for sending browser to the corresponding servers of the preset web URL Use version number's inquiry request.
14. a kind of system that target front end resource file is obtained based on browser, it is characterised in that described System includes:Browser;Wherein, the browser is stored with original front end resource file, and at least One differential file, the differential file merges to be formed and is higher than or low with the original front end resource file In another version of the original front end resource file version;
The browser includes:
First acquisition module, the version number for obtaining target front end resource file;
Second acquisition module, for the version number when target front end resource file and the original front end Obtained when the version number of resource file is different, in the differential file stored from the browser with it is described The corresponding target differential file of target front end resource file;
Merging module, for the original front end resource file and the target differential file to be merged Obtain target front end resource file.
15. system as claimed in claim 14, it is characterised in that first acquisition module includes:
Receiving unit, is returned for receiving the corresponding server of preset web uniform resource position mark URL Available edition list;Wherein, having recorded the browser in the available edition list can make The version number of all front end resource files and each front end resource file pass corresponding with differential file System;
Judging unit, for judging whether include target front end resource in the preset web URL The version number of file;
First processing units, if for including target front end resource in the preset web URL The version number of file, then obtain the target front end resource file included in the preset web URL Version number;
Second processing unit, if provided for not including the target front end in the preset web URL The version number of source file, then obtain the latest edition number in the available edition list, will be described newest Version number as target front end resource file version number.
16. system as claimed in claim 14, it is characterised in that the system also includes:
Whether there is in first judge module, the differential file for judging browser storage with The corresponding target differential file of target front end resource file;
First processing module, if for the browser store the differential file in exist with it is described The corresponding target differential file of target front end resource file, then obtain the target of the browser storage Differential file;
Second processing module, if be not present and institute in the differential file stored for the browser The corresponding target differential file of target front end resource file is stated, then obtains the goal discrepancy single cent from server Part.
17. system as claimed in claim 16, it is characterised in that the system also includes:
3rd acquisition module, for the version number when target front end resource file and the original front end When the version number of resource file is identical, then the original front end resource file of the browser storage is obtained It is used as target front end resource file.
18. system as claimed in claim 17, it is characterised in that the system also includes:
Second judge module, for the version number when target front end resource file and the original front end Before when the version number of resource file is identical, or when target front end resource file version number with it is described Before when the version number of original front end resource file is different, the version of target front end resource file is judged Number whether it is one kind in the available edition list;
3rd processing module, if the version number for target front end resource file is described to use version One kind in this number list, then judge target front end resource file version number whether with it is described original The version number of front end resource file is identical;
Fourth processing module, if the version number for target front end resource file is not described uses The version number of target front end resource file, then be defined as described to use by one kind in version number's list Latest edition number in version number's list, then notifies the 3rd processing module is performed to judge the target The version number of front end resource file whether the step identical with the version number of the original front end resource file.
19. the system as described in claim 15-18 any claims, it is characterised in that described One acquisition module also includes:
First acquisition unit, the preset web URL for obtaining user's input, wherein, it is described pre- If including the version number of target front end resource file in webpage URL;
First transmitting element, can for sending browser to the corresponding servers of the preset web URL Use version number's inquiry request.
20. the system as described in claim 15-18 any claims, it is characterised in that described One acquisition module also includes:
Second acquisition unit, for obtaining the preset web URL;
Second transmitting element, can for sending browser to the corresponding servers of the preset web URL Use version number's inquiry request;
The system also includes:The server;
The server includes:
5th processing module, for receiving the browser available edition inquiry request, acquisition is described can With the corresponding available edition list of version number's inquiry request;
3rd judge module, for the version for judging whether to need to specify target front end resource file Number;
Add module, before if it is required, then adding the target in the preset web URL The version number of resource file is held, the default net of the version number of target front end resource file will be added Page URL, and the available edition list return to the browser;
Correspondingly, the receiving unit, is additionally operable to receive the preset web that the server is returned URL, the original preset web URL is replaced with the preset web URL of return.
CN201610097179.6A 2016-02-22 2016-02-22 Method, device and system for acquiring target front-end resource file based on browser Active CN107103001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610097179.6A CN107103001B (en) 2016-02-22 2016-02-22 Method, device and system for acquiring target front-end resource file based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610097179.6A CN107103001B (en) 2016-02-22 2016-02-22 Method, device and system for acquiring target front-end resource file based on browser

Publications (2)

Publication Number Publication Date
CN107103001A true CN107103001A (en) 2017-08-29
CN107103001B CN107103001B (en) 2021-03-02

Family

ID=59658489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610097179.6A Active CN107103001B (en) 2016-02-22 2016-02-22 Method, device and system for acquiring target front-end resource file based on browser

Country Status (1)

Country Link
CN (1) CN107103001B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984206A (en) * 2018-08-09 2018-12-11 聚好看科技股份有限公司 A kind of method and apparatus that data are sent
CN112202643A (en) * 2020-10-12 2021-01-08 成都知道创宇信息技术有限公司 Network detection method, device, test host and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778150A (en) * 2012-10-23 2014-05-07 英业达科技有限公司 Webpage browsing system and method
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
CN104503790A (en) * 2014-12-19 2015-04-08 广东欧珀移动通信有限公司 Application version management method and system and smart terminal
CN104735112A (en) * 2013-12-23 2015-06-24 阿里巴巴集团控股有限公司 Resource file sending method and resource file caching method and device
US20150212992A1 (en) * 2013-08-30 2015-07-30 Tealium Inc. Combined synchronous and asynchronous tag deployment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778150A (en) * 2012-10-23 2014-05-07 英业达科技有限公司 Webpage browsing system and method
US20150212992A1 (en) * 2013-08-30 2015-07-30 Tealium Inc. Combined synchronous and asynchronous tag deployment
CN104735112A (en) * 2013-12-23 2015-06-24 阿里巴巴集团控股有限公司 Resource file sending method and resource file caching method and device
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
CN104503790A (en) * 2014-12-19 2015-04-08 广东欧珀移动通信有限公司 Application version management method and system and smart terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984206A (en) * 2018-08-09 2018-12-11 聚好看科技股份有限公司 A kind of method and apparatus that data are sent
CN108984206B (en) * 2018-08-09 2021-10-19 聚好看科技股份有限公司 Data sending method and equipment
CN112202643A (en) * 2020-10-12 2021-01-08 成都知道创宇信息技术有限公司 Network detection method, device, test host and storage medium
CN112202643B (en) * 2020-10-12 2022-03-29 成都知道创宇信息技术有限公司 Network detection method, device, test host and storage medium

Also Published As

Publication number Publication date
CN107103001B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
US11563674B2 (en) Content based routing method and apparatus
US9235636B2 (en) Presenting data in response to an incomplete query
CA2831381C (en) Recovery of tenant data across tenant moves
US20090276455A1 (en) Sharing information about a document across a private compuer network
CN104426925B (en) Web page resources acquisition methods and device
US20080195691A1 (en) Method and System for Accessing Applications and Data, and for Tracking of Key Indicators on Mobile Handheld Devices
CN106575298A (en) Fast rendering of websites containing dynamic content and stale content
US8225192B2 (en) Extensible cache-safe links to files in a web page
US20090043815A1 (en) System and method for processing downloaded data
US20080082539A1 (en) Systems and methods for provisioning content from multiple sources to a computing device
US9984052B2 (en) Verifying content of resources in markup language documents
CN106649395A (en) Webpage updating method and apparatus
CN108932332A (en) The loading method and device of static resource
US10169001B2 (en) Undo/redo in javascript object notation
CN103365996A (en) File management and processing method, device and system
CN103678487A (en) Method and device for generating web page snapshot
CN104115142A (en) Device specific folders for bookmarks synchronization
CN103078945A (en) Method and system for processing browser crash data
US10606935B2 (en) Transforming a website for dynamic web content management
US10127319B2 (en) Distributed failover for unavailable content
CN107103001A (en) The methods, devices and systems of target front end resource file are obtained based on browser
US9747295B1 (en) Updating a large dataset in an enterprise computer system
US20020166118A1 (en) System and method for detecting dirty data fields
Davis Archiving the Web: A Case Study from the University of Victoria
US10223415B2 (en) Generation of mapping definitions for content management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant