CN107992557A - Static resource update method, device, storage medium and computer equipment - Google Patents

Static resource update method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN107992557A
CN107992557A CN201711218954.XA CN201711218954A CN107992557A CN 107992557 A CN107992557 A CN 107992557A CN 201711218954 A CN201711218954 A CN 201711218954A CN 107992557 A CN107992557 A CN 107992557A
Authority
CN
China
Prior art keywords
static resource
resource
page
renewal
static
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.)
Pending
Application number
CN201711218954.XA
Other languages
Chinese (zh)
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.)
Ping An Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
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 Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN201711218954.XA priority Critical patent/CN107992557A/en
Publication of CN107992557A publication Critical patent/CN107992557A/en
Pending legal-status Critical Current

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

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 Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of static resource update method, device, storage medium and computer equipment.This method includes:Target quiescent resource and corresponding page path are obtained by default static resource administration interface;Obtain the file destination name of target quiescent resource;Obtained and the matched original static resource of file destination famous prime minister from page path;It is target quiescent resource by original static resource updates.Above-mentioned static resource update method, device, storage medium and computer equipment has saved the time of static resource renewal, improves the efficiency of static resource renewal.

Description

Static resource update method, device, storage medium and computer equipment
Technical field
The present invention relates to Internet technical field, more particularly to a kind of static resource update method, device, storage medium And computer equipment.
Background technology
With the development of internet, the shared and issue of information becomes convenient and efficient, and the change of content of pages is also more fast Speed.When needing to update the picture in front end page, document when static resource, the mode that version is issued can be taken to provide static state Source is published to the production environment externally serviced., it is necessary to be issued after static resource is packed with backstage code when static resource is issued Onto server, pass on to different levels for approval by project manager, Configuration Management Officer, tester and leaders etc., test is logical Version issue could be carried out after crossing, completes the renewal of front end static resource.
However, in traditional static resource update method, since static resource and backstage code are to be packaged with carrying out Version issue, static resource cannot be changed arbitrarily, and due to the static resource update method flow of version issue it is complicated, it is necessary to Take a substantial amount of time, so as to cause the inefficiency that static resource updates.
The content of the invention
Based on this, it is necessary to for the technical problem of static resource renewal inefficiency, there is provided a kind of static resource renewal Method, apparatus, storage medium and computer equipment.
A kind of static resource update method, including:Target quiescent resource is obtained by default static resource administration interface And corresponding page path;Obtain the file destination name of the target quiescent resource;From the page path obtain with it is described The matched original static resource of file destination famous prime minister;It is the target quiescent resource by the original static resource updates.
In one of the embodiments, it is described by the original static resource updates for the target quiescent resource it Afterwards, further include:The renewal of the page that receiving terminal is sent by browser is asked;According to page described in the renewal of the page acquisition request Static resource set under the path of face, includes the target quiescent resource in the static resource set;According to the static money Source set generation renewal of the page response, and renewal of the page response is sent to the terminal, the renewal of the page response and is used In indicating that the terminal is rendered by the browser according to the static resource set, target pages are generated.
In one of the embodiments, the renewal of the page request is dynamic page renewal request, described in the basis Before static resource set under page path described in renewal of the page acquisition request, further include:Please by dynamic page renewal Transmission is asked to web container;Dynamic resource is obtained from background data base by the web container;It is described to be provided according to the static state Source set generation renewal of the page response, and renewal of the page response is sent to the terminal, including:Provided according to the dynamic Source and static resource set generation dynamic page renewal response, and dynamic page renewal is responded to the terminal, The dynamic page renewal response is used to indicate that the terminal carries out wash with watercolours by the browser according to the static resource set Dye generation target pages, and the dynamic resource is filled to the target pages.
In one of the embodiments, it is described by the original static resource updates for the target quiescent resource it Before, further include:The original static resource is stored to default backup path;It is described by the original static resource more It is newly after the target quiescent resource, further includes:Static resource rollback instruction is received, is wrapped in the static resource rollback instruction Containing the file destination name;Obtained and the file destination name under the backup path according to static resource rollback instruction The original static resource to match;It is the original static resource by the target quiescent resource rollback.
In one of the embodiments, after the reception static resource rollback instruction, further include:Obtain and the mesh Mark the corresponding rollback number of filename;It is described according to the static resource rollback instruction under the backup path obtain with it is described The matched original static resource of file destination famous prime minister, including:When the rollback number is less than or equal to preset times, according to described Static resource rollback instruction obtains and the matched original static resource of the file destination famous prime minister under the backup path.
In one of the embodiments, the static resource administration interface includes static resource upload region and disk number According to passage zone;It is described that target quiescent resource and corresponding page path, bag are obtained by default static resource administration interface Include:Region is uploaded by the static resource and receives target quiescent resource;Determined by the data in magnetic disk passage zone and institute State the corresponding page path of target quiescent resource.
In one of the embodiments, the target quiescent resource includes front end page code, picture resource and document money At least one of source.
A kind of static resource updating device, described device include:Target quiescent source obtaining module, for by default Static resource administration interface obtains target quiescent resource and corresponding page path;File destination name acquisition module, for obtaining The file destination name of the target quiescent resource;Original static source obtaining module, for from the page path obtain with The matched original static resource of file destination famous prime minister;Static resource update module, for by the original static resource more It is newly the target quiescent resource.
A kind of computer-readable recording medium, is stored thereon with computer program, which realizes when being executed by processor The step of static resource update method described in above-mentioned each embodiment.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, the processor realize the static resource update method described in above-mentioned each embodiment when performing described program The step of.
Above-mentioned static resource update method, device, storage medium and computer equipment, are managed by default static resource After interface obtains target quiescent resource and corresponding page path, by the file destination under page path with target quiescent resource The matched original static resource of name replaces with target quiescent resource.Realized more just by default static resource administration interface The update mode of prompt static resource, avoids the version issue flow after static resource is packed with backstage, has saved static money The time of source renewal, so as to improve the efficiency of static resource renewal.
Brief description of the drawings
Fig. 1 is the applied environment figure of static resource update method in one embodiment;
Fig. 2 is the flow chart of static resource update method in one embodiment;
Fig. 3 is the schematic diagram of static resource administration interface in one embodiment;
Fig. 4 is the flow chart of static resource update method in another embodiment;
Fig. 5 is the structure diagram of static resource updating device in one embodiment;
Fig. 6 is the cut-away view of one embodiment Computer equipment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements are not limited by these terms.These terms are only used to distinguish first element and another element.Citing For, without departing from the scope of the invention, the first static resource can be known as the second static resource, and it is similar Ground, can be known as the first static resource by the second static resource.Both static state provides for first static resource and the second static resource Source, but it is not same static resource.
The static resource update method that the embodiment of the present invention is provided, can be applied in application environment as shown in Figure 1.Ginseng According to Fig. 1, which includes server 102 and terminal 104.Wherein, terminal 104 includes but not limited to mobile phone, tablet computer Or personal digital assistant or Wearable etc., server 102 can be independent physical server or multiple things Manage the server cluster that server is formed.Server 102 can be used for performing the static resource that each embodiment of the present invention is provided Update method.Server 102 and 104 network connection of terminal, server 102 can send data to terminal 104 by network connection. Such as server 102 can receiving terminal 104 send renewal of the page request;Renewal of the page can also be responded and sent out by server 102 Send to terminal 104.Wherein, network connection includes but not limited to wireless network, cable network etc..
In one embodiment, as shown in Figure 2, there is provided a kind of static resource update method, this method can be used for such as Fig. 1 Server 102 in shown application environment, this method includes:
Step S202, target quiescent resource and corresponding page path are obtained by default static resource administration interface.
Static resource administration interface is the interface for managing static resource.Target quiescent resource refers to be used to update issue Static resource.Wherein, static resource refers to that is quoted in the page does not include the file with backstage interaction logic.Target quiescent provides Source includes at least one of front end page code, picture resource and document resources.Wherein, front end page code includes but unlimited In CSS (Cascading Style Sheets, cascading style sheets, a kind of machine word for being used for showing pagefile pattern Speech), JS (JavaScript, a kind of literal translation formula script), XML (Extensible Markup Language, expansible mark Remember language) and the file such as HTML (HyperTextMarkup Language, hypertext markup language).Picture resource is included but not It is limited to the files such as static images, dynamic picture and dynamic video.Document resources include but not limited to the files such as PDF.
In one embodiment, as shown in Figure 3, there is provided the schematic diagram of static resource administration interface, static resource management Interface 300, which includes static resource upload region 310 and data in magnetic disk passage zone 320, step S202, to be included:Provided by static state Source uploads region and receives target quiescent resource;Page road corresponding with target quiescent resource is determined by data in magnetic disk passage zone Footpath.Static resource, which uploads, may also include static resource selection control 312 and static resource uploading control 314 in region 310, work as inspection Measure act on the static resource selection control 312 clicking operation when, can from target database selection target static resource, When receiving clicking operation when acting on static resource uploading control 314, target quiescent resource can be uploaded to page number According in storehouse.The list of original static resource corresponding under multiple page paths can be shown in data in magnetic disk passage zone 320.Its In, original static resource can be stored in the disk of 102 carry of server.Wherein, disk can be hard disk, such as NAS (Network Attached Storage, network attached storage).It may also include return control in data in magnetic disk passage zone 320 322, the upper level path for back page path;Control 324 is downloaded, for downloading the original static resource chosen;Delete Control 326, for deleting the original static resource chosen;Newly-built control 328, for new folder as under page path Level-one path.
Step S204, obtains the file destination name of target quiescent resource.
File destination name refers to the filename of target quiescent resource.Wherein, it is different to distinguish to refer to computer for filename File, and to the title that each file is specified, it is made of root name and file extension.Such as if target quiescent resource File destination entitled A.jpg, A be root name .jpg is file extension, and the target can be determined by file extension Static resource is picture resource.
In one embodiment, can be by file destination name and phase after getting the file destination name of target quiescent resource The page path splicing answered, the access link of generation target quiescent resource.Wherein, access link and refer to the corresponding page of page path Cited link in the code of face.Such as the corresponding page paths of target quiescent resource A.jpg are www.baidu.com/ Aa/bb, then access and be linked as www.baidu.com/aa/bb/A.jpg.
Step S206, obtains and the matched original static resource of file destination famous prime minister from page path.
Original static resource refers to the static resource before renewal.The raw filename of each original static resource is corresponding Unique filename in page path.By by original static resource in the file destination name of target quiescent resource and page path Raw filename matched, judge whether the raw filename consistent with file destination name.If so, then this is matched The corresponding original static resource of raw filename as matched original static resource, and from the page path obtain and mesh The original static resource that mark filename matches;If it is not, then illustrate in the page corresponding to the page path without reference with being somebody's turn to do The consistent original static resource of file destination name, can not carry out the renewal of static resource, can show whether just to confirm page path True prompting message.
In one embodiment, SHA256 cryptographic Hash can be generated according to the content of original static resource file, and will be breathed out Uncommon value adds all or part of of the filename as original static resource, it is ensured that the unicity of static resource filename.Than File such as using application-908e25f4bf641868d8683022a5b62f54.js as application.js Name.
Original static resource updates are target quiescent resource by step S208.
Original static resource corresponding with target quiescent resource in page path is replaced with into the target quiescent resource, so that Realize the renewal of static resource on target pages.Wherein, target pages refer to the page corresponding to page path.Can will be original Target quiescent resource is added under corresponding page path by static resource again after deleting, and can also realize that original static provides at the same time The deletion in source and the addition of target quiescent resource, again can also will add target quiescent resource after original static resource backup To corresponding page path.
In above-described embodiment, target quiescent resource and corresponding page road are obtained by default static resource administration interface After footpath, the matched original static resource of file destination name under page path with target quiescent resource is replaced with into target quiescent Resource.The update mode of more easily static resource is realized by default static resource administration interface, avoids static state Version after resource is packed with backstage issues flow, the time of static resource renewal has been saved, so as to improve static resource more New efficiency.
In one embodiment, as shown in figure 4, after by original static resource updates for target quiescent resource, also wrap Include:
Step S402, the renewal of the page that receiving terminal is sent by browser are asked.
Renewal of the page request refers to the request for updating the page.Wherein, the page can be dynamic page or static page.It is dynamic The state page refers to combine the high-level programming language beyond HTML and the Web wrapper technology generation of database technology progress The page, can be the extension name such as .asp .jsp .php.Static page refers to the compiling for needing not move through server, is loaded directly into Shown on client browser, be usually .html .htm extension name.Renewal of the page request can according to act on terminal clear Look at device renewal of the page operation and generate request.Renewal of the page request includes page path information, and some and browser sheet The relevant information of body.Terminal can be the terminal 104 in application scenarios as shown in Figure 1.Terminal can pass through network by browser It is connected on server, sending renewal of the page using hypertext transfer protocol asks.For example, user inputs on a web browser After one URL (Uniform Resource Locator, universal resource locator), such as:http://www.aaa.com/ Bb, hypertext transfer protocol " http:// " that indicate afterwards is the page path www.aaa.com/bb for needing to access, browser will Corresponding renewal of the page request is created according to URL.
Step S404, according to the static resource set under renewal of the page acquisition request page path.
Static resource set refers to the set that all static resources are formed under page path.Wherein, static resource set In include target quiescent resource, and other original static resources for not being updated.Static resource set is included but not It is limited to the combination of the one or more of which static resource such as page code, picture resource and document resources.Static resource set can It is stored on the disk of server carry.After getting renewal of the page request, the letter that is carried in being asked according to renewal of the page Breath obtains the static resource set under respective page path.
Step S406, renewal of the page response is generated according to static resource set, and renewal of the page response is sent to terminal.
Renewal of the page response refers to ask generated response message for renewal of the page.Wherein, renewal of the page is accordingly wrapped The relevant information of renewal of the page request and the related data positioned at specified URL are included, for example specifies the related data of URL to include But it is not limited to static resource set.Renewal of the page response is used for instruction terminal and carries out wash with watercolours according to static resource set by browser Dye, generates target pages.When terminal receive the renewal of the page it is corresponding after, terminal can parse the renewal of the page by server Response, and generate target pages.Wherein, target pages refer to the page after static resource renewal, and target is included in target pages Static resource.
In above-described embodiment, asked according to the renewal of the page that terminal is sent by browser, target quiescent resource will be included Static resource set send to terminal, terminal can pass through the corresponding renewal of the page response generation target pages of browser resolves. The time of static resource on the change page has been saved, has improved the efficiency that static resource updates on the page.
In one embodiment, renewal of the page request is dynamic page renewal request, according to renewal of the page acquisition request Before static resource set under page path, further include:Dynamic page is updated request to send to web container;Held by web Device obtains dynamic resource from background data base;Renewal of the page response is generated according to static resource set, and renewal of the page is rung It should send to terminal, including:According to dynamic resource and the generation dynamic page renewal response of static resource set, and by dynamic page Renewal response to terminal, dynamic page renewal response is rendered for instruction terminal by browser according to static resource set Target pages are generated, and dynamic resource is filled to target pages.
Dynamic page renewal request refers to the request for updating dynamic page.Web container is a kind of service routine, is being taken Business device a port just has the program of an offer respective service, and this program is exactly the request that processing is sent from client, Such as the Tomcat containers in JAVA, the IIS or PWS of ASP are web containers.It can be obtained by web container from background data base Dynamic resource, wherein, background data base refers to the database in backstage, is different from the page data of static resource set storage Storehouse.Dynamic resource refers to the data in background data base, for generating dynamic page.Dynamic page renewal response refers to for dynamic Generated response message is asked in state renewal of the page.After terminal receives dynamic page renewal response, terminal can be by clear Device of looking at parses dynamic page renewal response, target pages of the generation comprising dynamic resource and target quiescent resource.
In one embodiment, can be by dynamic resource after obtaining dynamic resource from background data base by web container Processing is changed into after static resource, such as, the dynamic resource of the file extensions such as .asp .jsp .php is converted into .htm, the static resource such as .html, then by the generation dynamic page renewal response of transformed static resource, and send to terminal.
In one embodiment, before being target quiescent resource by original static resource updates, further include:Will be original quiet State resource is stored to default backup path;After by original static resource updates for target quiescent resource, further include:Connect Static resource rollback instruction is received, file destination name is included in static resource rollback instruction;Instructed according to static resource rollback from standby Part obtains and the matched original static resource of file destination famous prime minister under path;The rollback of target quiescent resource is provided for original static Source.
Static resource in system database can be stored to different files according to the type or page path of static resource Below catalogue.Such as it is self-service card insurance h5 page codes and picture resource, document resources are all placed on E catalogues in the following, the person Danger is placed on below F catalogues.Say for another example, backup path can be preset, backup path is available for original quiet before backup updating State resource.
In one embodiment, rollback control is may also include in the data in magnetic disk passage zone of static resource administration interface, Rollback for target quiescent resource.Wherein, rollback refers to program or data processing mistake, by program or data recovery to upper one The behavior of secondary correct status, for example when the static resource after renewal is incorrect, the static resource after renewal can be replaced again For the static resource before renewal., can be quiet according to the target accordingly chosen when detecting the clicking operation for acting on rollback control The generation static resource rollback instruction of state resource, file destination name is included in static resource rollback instruction.According to static resource rollback Instruction can obtain original static resource corresponding with file destination name from backup path, and be phase by the rollback of target quiescent resource The original static resource answered.
In one embodiment, after receiving static resource rollback instruction, further include:Obtain corresponding with file destination name Rollback number;Obtained under backup path according to static resource rollback instruction and provided with the matched original static of file destination famous prime minister Source, including:When rollback number is less than or equal to preset times, acquisition and mesh under backup path are instructed according to static resource rollback The original static resource that mark filename matches.Rollback number refers to time of the continuous rollback of the corresponding static resource of file destination name Number, continuous rollback refer to adjacent no generation static resource renewal between receiving static resource rollback instruction twice.
For example, when preset times are 3 times, the original static before the renewal that continuous 3 static resources can be updated Resource is stored to backup path, and stores corresponding renewal time.For example continuously that the first static resource is updated to second is quiet State resource, the 3rd static resource is updated to by the second static resource, after the 3rd static resource is updated to the 4th static resource, First static resource, the second static resource and the 3rd static resource can be stored to backup path sequentially in time, and the One static resource, the second static resource, the 3rd static resource and the corresponding file destination name of the 4th static resource are consistent.Receive Can be the 3rd static resource by the 4th static resource rollback after static resource rollback instruction for the 4th static resource, phase Ying Di, can be second by the 3rd static resource rollback after receiving the static resource rollback instruction for the 3rd static resource Static resource, after receiving the static resource rollback instruction for the second static resource, can be by the second static resource rollback First static resource.After the instruction of the rollback to the first static resource is received again, it can detect file destination name and correspond to Rollback number when having reached 3 times, then no longer perform rolling back action.
In one embodiment, when needing replacing the corresponding URL of the original static resource in parent page code, such as The raw filename for other original static resources quoted in parent page code needs replacing, or is quoted in parent page code Other original static resources file type need change when, then need the static resource after the renewal using reference quiet as target State resource be added to page path under and then using for the page code of renewal as target quiescent resource updates to page road Under footpath.The original static resource replaced can also be deleted or backed up at the same time.
In one embodiment, when being target quiescent resource by original static resource updates, the relevant information of renewal is recorded, Including but not limited to file destination name, file size, file type, operation account, renewal time etc..It was found that webpage renewal is wrong When can find wrong source in time, and more quickly find original static resource and corrected or rollback.
In an embodiment, terminal can pass through the static resource on the browser rs cache page.When receiving renewal of the page During request, detect and updated between current page renewal time and last renewal of the page time with the presence or absence of static resource.If so, The target quiescent resource that renewal time can be between current page renewal time and last renewal of the page time send to Terminal;If it is not, can return to be the newest page prompt message.
In one embodiment, as shown in Figure 5, there is provided a kind of static resource updating device 500, the device include:Mesh Static resource acquisition module 502 is marked, for by default static resource administration interface acquisition target quiescent resource and accordingly Page path;File destination name acquisition module 504, for obtaining the file destination name of target quiescent resource;Original static resource Acquisition module 506, for being obtained and the matched original static resource of file destination famous prime minister from page path;Static resource updates Module 508, for being target quiescent resource by original static resource updates.
In one embodiment, which further includes renewal of the page module, is sent for receiving terminal by browser Renewal of the page is asked;According to the static resource set under renewal of the page acquisition request page path, included in static resource set Target quiescent resource;Renewal of the page response is generated according to static resource set, and renewal of the page response is sent to terminal, the page Renewal response is rendered for instruction terminal by browser according to static resource set, generates target pages.
In one embodiment, renewal of the page module is additionally operable to dynamic page updating request transmission to web container;Pass through Web container obtains dynamic resource from background data base;According to dynamic resource and the generation dynamic page renewal of static resource set Response, and dynamic page renewal response to terminal, dynamic page renewal response are used for instruction terminal by browser according to quiet State resource collection carries out rendering generation target pages, and dynamic resource is filled to target pages.
In one embodiment, original static source obtaining module 506 is additionally operable to store original static resource to default Backup path under;Static resource update module 508 is additionally operable to receive static resource rollback instruction, in static resource rollback instruction Include file destination name;Obtained according to static resource rollback instruction under backup path matched original quiet with file destination famous prime minister State resource;It is original static resource by the rollback of target quiescent resource.
In one embodiment, static resource update module 508 is additionally operable to obtain rollback time corresponding with file destination name Number;When rollback number is less than or equal to preset times, obtained according to static resource rollback instruction under backup path and target text The matched original static resource of part famous prime minister.
In one embodiment, static resource administration interface includes static resource upload region and data in magnetic disk datapath section Domain, target quiescent source obtaining module 502 are additionally operable to upload region reception target quiescent resource by static resource;Pass through disk Data path region determines page path corresponding with target quiescent resource.
In one embodiment, target quiescent resource is included in front end page code, picture resource and document resources extremely Few one kind.
Above-mentioned static resource updating device can be implemented as a kind of form of computer program, and computer program can be such as Run in computer equipment shown in Fig. 6.
Modules in above-mentioned static resource updating device can come fully or partially through software, hardware and combinations thereof Realize.Above-mentioned each module can in the form of hardware be embedded in or independently of in the memory of terminal, can also store in a software form In the memory of terminal, the corresponding operation of above modules is performed in order to which processor calls.During the processor can be Central Processing Unit (CPU), microprocessor, microcontroller etc..
In one embodiment, there is provided a kind of computer-readable recording medium, is stored thereon with computer program, the journey Following steps are realized when sequence is executed by processor:By default static resource administration interface acquisition target quiescent resource and accordingly Page path;Obtain the file destination name of target quiescent resource;Obtained from page path matched with file destination famous prime minister Original static resource;It is target quiescent resource by original static resource updates.
In one embodiment, when which is executed by processor, realized that by original static resource updates be mesh After the step of marking static resource, further include:The renewal of the page that receiving terminal is sent by browser is asked;According to renewal of the page Static resource set under acquisition request page path, includes target quiescent resource in static resource set;According to static resource Set generation renewal of the page response, and renewal of the page response is sent to terminal, renewal of the page response and is passed through for instruction terminal Browser is rendered according to static resource set, generates target pages.
In one embodiment, renewal of the page request is dynamic page renewal request, when which is executed by processor, Realized according to the step of static resource set under renewal of the page acquisition request page path before, further include:Will dynamic Renewal of the page request is sent to web container;Dynamic resource is obtained from background data base by web container;The basis realized The generation renewal of the page response of static resource set, and renewal of the page response is sent to terminal, including:According to dynamic resource and quiet The generation dynamic page renewal response of state resource collection, and dynamic page renewal response to terminal, dynamic page renewal response are used Carried out by browser rendering generation target pages according to static resource set in instruction terminal, and dynamic resource is filled to mesh Mark the page.
In one embodiment, when which is executed by processor, realized that by original static resource updates be mesh Before the step of marking static resource, further include:Original static resource is stored to default backup path;Will what is realized After the step of original static resource updates are target quiescent resource, further include:Receive static resource rollback instruction, static resource File destination name is included in rollback instruction;Obtained and file destination famous prime minister under backup path according to static resource rollback instruction The original static resource matched somebody with somebody;It is original static resource by the rollback of target quiescent resource.
In one embodiment, when which is executed by processor, the step of reception static resource rollback instruction is being realized After rapid, further include:Obtain rollback number corresponding with file destination name;That is realized instructs from standby according to static resource rollback Acquisition and the matched original static resource of file destination famous prime minister under part path, including:When rollback number is less than or equal to preset times When, obtained and the matched original static resource of file destination famous prime minister under backup path according to static resource rollback instruction.
In one embodiment, static resource administration interface includes static resource upload region and data in magnetic disk datapath section Domain;When the program is executed by processor, realizes and target quiescent resource and phase are obtained by default static resource administration interface The step of page path answered, including:Region is uploaded by static resource and receives target quiescent resource;Pass through data in magnetic disk path Region determines page path corresponding with target quiescent resource.
In one embodiment, target quiescent resource is included in front end page code, picture resource and document resources extremely Few one kind.
In one embodiment, there is provided a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize following steps in executive program:Pass through default static state Resource management interface obtains target quiescent resource and corresponding page path;Obtain the file destination name of target quiescent resource;From Obtained and the matched original static resource of file destination famous prime minister in page path;Original static resource updates are provided for target quiescent Source.
In one embodiment, during above-mentioned processor executive program, realized that by original static resource updates be mesh After the step of marking static resource, further include:The renewal of the page that receiving terminal is sent by browser is asked;According to renewal of the page Static resource set under acquisition request page path, includes target quiescent resource in static resource set;According to static resource Set generation renewal of the page response, and renewal of the page response is sent to terminal, renewal of the page response and is passed through for instruction terminal Browser is rendered according to static resource set, generates target pages.
In one embodiment, renewal of the page request is dynamic page renewal request, during above-mentioned processor executive program, Realized according to the step of static resource set under renewal of the page acquisition request page path before, further include:Will dynamic Renewal of the page request is sent to web container;Dynamic resource is obtained from background data base by web container;The basis realized The generation renewal of the page response of static resource set, and renewal of the page response is sent to terminal, including:According to dynamic resource and quiet The generation dynamic page renewal response of state resource collection, and dynamic page renewal response to terminal, dynamic page renewal response are used Carried out by browser rendering generation target pages according to static resource set in instruction terminal, and dynamic resource is filled to mesh Mark the page.
In one embodiment, during above-mentioned processor executive program, realized that by original static resource updates be mesh Before the step of marking static resource, further include:Original static resource is stored to default backup path;Will what is realized After the step of original static resource updates are target quiescent resource, further include:Receive static resource rollback instruction, static resource File destination name is included in rollback instruction;Obtained and file destination famous prime minister under backup path according to static resource rollback instruction The original static resource matched somebody with somebody;It is original static resource by the rollback of target quiescent resource.
In one embodiment, during above-mentioned processor executive program, the step of reception static resource rollback instruction is being realized After rapid, further include:Obtain rollback number corresponding with file destination name;That is realized instructs from standby according to static resource rollback Acquisition and the matched original static resource of file destination famous prime minister under part path, including:When rollback number is less than or equal to preset times When, obtained and the matched original static resource of file destination famous prime minister under backup path according to static resource rollback instruction.
In one embodiment, static resource administration interface includes static resource upload region and data in magnetic disk datapath section Domain;During above-mentioned processor executive program, realize and target quiescent resource and phase are obtained by default static resource administration interface The step of page path answered, including:Region is uploaded by static resource and receives target quiescent resource;Pass through data in magnetic disk path Region determines page path corresponding with target quiescent resource.
In one embodiment, target quiescent resource is included in front end page code, picture resource and document resources extremely Few one kind.
Fig. 6 is the internal structure schematic diagram of one embodiment Computer equipment.The computer equipment can be applied to Fig. 1's Server 102 in application environment.The computer equipment includes processor, non-volatile memories Jie connected by system bus Matter, built-in storage, network interface and display screen.Wherein, the processor of the computer equipment is used to provide calculating and control ability, Support the operation of whole computer equipment.The non-volatile memory medium of computer equipment be stored with operating system, database and Computer program.It is stored with the database and is used for realization a kind of static resource update method that each embodiment of the above is provided Relevant data, such as original static resource.The computer program can be performed by processor, for realizing each reality above Apply a kind of static resource update method that example is provided.Built-in storage in computer equipment is in non-volatile memory medium Operating system, database and computer program provide the running environment of cache.Network interface can be Ethernet card or nothing Gauze card etc., for carrying out network connection with exterior terminal or server, such as with the terminal 104 in the application environment of Fig. 1 Network connection is carried out, the renewal of the page that receiving terminal 104 is sent by browser is asked, and server 102 can also be by the page of generation Face renewal response is sent to terminal 104.The display screen of the computer equipment can be touch-screen, for example be capacitance plate or electronics Screen, can act on the clicking operation of the control of the touch screen display by reception, generate corresponding instruction.
It will be understood by those skilled in the art that the structure of computer equipment shown in Fig. 6, it is only and application scheme The block diagram of relevant part-structure, does not form the restriction for the computer equipment being applied thereon to application scheme, specifically Computer equipment can include than more or fewer components in figure, either combine some components or there is different portions Part is arranged.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-OnlyMemory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, its description is more specific and detailed, but simultaneously Cannot therefore it be construed as limiting the scope of the patent.It should be pointed out that come for those of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of static resource update method, including:
Target quiescent resource and corresponding page path are obtained by default static resource administration interface;
Obtain the file destination name of the target quiescent resource;
Obtained and the matched original static resource of the file destination famous prime minister from the page path;
It is the target quiescent resource by the original static resource updates.
2. according to the method described in claim 1, it is characterized in that, it is described by the original static resource updates be the mesh After marking static resource, further include:
The renewal of the page that receiving terminal is sent by browser is asked;
According to the static resource set under page path described in the renewal of the page acquisition request, wrapped in the static resource set Containing the target quiescent resource;
Renewal of the page response is generated according to the static resource set, and renewal of the page response is sent to the terminal, The renewal of the page response is used to indicate that the terminal is rendered by the browser according to the static resource set, raw Into target pages.
3. according to the method described in claim 2, it is characterized in that, the renewal of the page request for dynamic page renewal request, Before static resource set under the page path according to the renewal of the page acquisition request, further include:
The dynamic page is updated request to send to web container;
Dynamic resource is obtained from background data base by the web container;
It is described that renewal of the page response is generated according to the static resource set, and renewal of the page response was sent to the end End, including:
According to the dynamic resource and static resource set generation dynamic page renewal response, and by the dynamic page more New response to the terminal, the dynamic page renewal response is used to indicate the terminal by the browser according to described quiet State resource collection carries out rendering generation target pages, and the dynamic resource is filled to the target pages.
4. according to the method described in claim 1, it is characterized in that, it is described by the original static resource updates be the mesh Before marking static resource, further include:
The original static resource is stored to default backup path;
It is described by the original static resource updates be the target quiescent resource after, further include:
Static resource rollback instruction is received, the file destination name is included in the static resource rollback instruction;
Obtained according to static resource rollback instruction under the backup path matched original with the file destination famous prime minister Static resource;
It is the original static resource by the target quiescent resource rollback.
5. according to the method described in claim 4, it is characterized in that, after the reception static resource rollback instruction, also wrap Include:
Obtain rollback number corresponding with the file destination name;
It is described that according to static resource rollback instruction, acquisition is matched with the file destination famous prime minister under the backup path Original static resource, including:
When the rollback number is less than or equal to preset times, according to static resource rollback instruction under the backup path Obtain and the matched original static resource of the file destination famous prime minister.
6. according to the method described in claim 1, it is characterized in that, the static resource administration interface is included on static resource Pass region and data in magnetic disk passage zone;
It is described that target quiescent resource and corresponding page path are obtained by default static resource administration interface, including:
Region is uploaded by the static resource and receives target quiescent resource;
Page path corresponding with the target quiescent resource is determined by the data in magnetic disk passage zone.
7. according to the method described in claim 1, it is characterized in that, the target quiescent resource includes front end page code, figure At least one of piece resource and document resources.
8. a kind of static resource updating device, described device include:
Target quiescent source obtaining module, for by default static resource administration interface acquisition target quiescent resource and accordingly Page path;
File destination name acquisition module, for obtaining the file destination name of the target quiescent resource;
Original static source obtaining module, it is matched original with the file destination famous prime minister for being obtained from the page path Static resource;
Static resource update module, for being the target quiescent resource by the original static resource updates.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The step of method any one of claim 1 to 7 is realized during row.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that the processor realizes method any one of claim 1 to 7 when performing described program The step of.
CN201711218954.XA 2017-11-28 2017-11-28 Static resource update method, device, storage medium and computer equipment Pending CN107992557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711218954.XA CN107992557A (en) 2017-11-28 2017-11-28 Static resource update method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711218954.XA CN107992557A (en) 2017-11-28 2017-11-28 Static resource update method, device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN107992557A true CN107992557A (en) 2018-05-04

Family

ID=62033746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711218954.XA Pending CN107992557A (en) 2017-11-28 2017-11-28 Static resource update method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107992557A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543127A (en) * 2018-11-26 2019-03-29 杭州安恒信息技术股份有限公司 A kind of page furbishing method, device, equipment and readable storage medium storing program for executing
CN109634925A (en) * 2019-02-20 2019-04-16 平安科技(深圳)有限公司 Resource file downloading method, device, computer equipment and storage medium
CN109753622A (en) * 2019-01-31 2019-05-14 天津字节跳动科技有限公司 static resource management method, device, storage medium and electronic equipment
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110750502A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Component processing method and device
CN110866198A (en) * 2019-09-27 2020-03-06 上海硬通网络科技有限公司 Static resource caching method, system, device, computer equipment and storage medium
CN111338688A (en) * 2020-02-28 2020-06-26 平安医疗健康管理股份有限公司 Long-acting data caching method and device, computer system and readable storage medium
CN112445952A (en) * 2019-08-29 2021-03-05 腾讯科技(深圳)有限公司 Data management method, device, equipment and storage medium
CN112487339A (en) * 2020-12-11 2021-03-12 杭州安恒信息技术股份有限公司 Method, device, equipment and storage medium for responding Web page request
CN113626625A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Management method, device and equipment for LOGO of virtualized product
CN114416641A (en) * 2021-12-31 2022-04-29 北京五八信息技术有限公司 File data processing method and device, electronic equipment and storage medium
CN115982504A (en) * 2023-02-22 2023-04-18 鲁班(北京)电子商务科技有限公司 Universal front-end engineering cache optimization deployment method and system
CN116546093A (en) * 2023-07-04 2023-08-04 云账户技术(天津)有限公司 Resource acquisition method and device based on static resource management platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593406A (en) * 2013-10-17 2014-02-19 北京奇虎科技有限公司 Static resource identifier processing method and device
CN104965764A (en) * 2015-06-02 2015-10-07 百度在线网络技术(北京)有限公司 Static resource processing method and apparatus
US20160103803A1 (en) * 2014-10-10 2016-04-14 Salesforce.Com, Inc. Systems and methods for optimizing web page load time
CN106372130A (en) * 2016-08-25 2017-02-01 厦门易灵网络科技有限公司 Static resource management method
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN107315791A (en) * 2017-06-14 2017-11-03 广州酷狗计算机科技有限公司 Static resource caching method, device and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593406A (en) * 2013-10-17 2014-02-19 北京奇虎科技有限公司 Static resource identifier processing method and device
US20160103803A1 (en) * 2014-10-10 2016-04-14 Salesforce.Com, Inc. Systems and methods for optimizing web page load time
CN104965764A (en) * 2015-06-02 2015-10-07 百度在线网络技术(北京)有限公司 Static resource processing method and apparatus
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN106372130A (en) * 2016-08-25 2017-02-01 厦门易灵网络科技有限公司 Static resource management method
CN107315791A (en) * 2017-06-14 2017-11-03 广州酷狗计算机科技有限公司 Static resource caching method, device and computer-readable recording medium

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750502A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Component processing method and device
CN109543127A (en) * 2018-11-26 2019-03-29 杭州安恒信息技术股份有限公司 A kind of page furbishing method, device, equipment and readable storage medium storing program for executing
CN109543127B (en) * 2018-11-26 2020-12-11 杭州安恒信息技术股份有限公司 Page refreshing method, device and equipment and readable storage medium
CN109753622B (en) * 2019-01-31 2021-06-18 天津字节跳动科技有限公司 Static resource management method and device, storage medium and electronic equipment
CN109753622A (en) * 2019-01-31 2019-05-14 天津字节跳动科技有限公司 static resource management method, device, storage medium and electronic equipment
CN109634925A (en) * 2019-02-20 2019-04-16 平安科技(深圳)有限公司 Resource file downloading method, device, computer equipment and storage medium
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110096659B (en) * 2019-03-27 2021-08-20 北京三快在线科技有限公司 Page display method, device and equipment and readable storage medium
CN112445952B (en) * 2019-08-29 2023-10-20 腾讯科技(深圳)有限公司 Data management method, device, equipment and storage medium
CN112445952A (en) * 2019-08-29 2021-03-05 腾讯科技(深圳)有限公司 Data management method, device, equipment and storage medium
CN110866198A (en) * 2019-09-27 2020-03-06 上海硬通网络科技有限公司 Static resource caching method, system, device, computer equipment and storage medium
CN111338688A (en) * 2020-02-28 2020-06-26 平安医疗健康管理股份有限公司 Long-acting data caching method and device, computer system and readable storage medium
CN111338688B (en) * 2020-02-28 2023-12-08 深圳平安医疗健康科技服务有限公司 Data long-acting caching method and device, computer system and readable storage medium
CN112487339A (en) * 2020-12-11 2021-03-12 杭州安恒信息技术股份有限公司 Method, device, equipment and storage medium for responding Web page request
CN112487339B (en) * 2020-12-11 2023-05-26 杭州安恒信息技术股份有限公司 Response method, device, equipment and storage medium for Web page request
CN113626625A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Management method, device and equipment for LOGO of virtualized product
CN114416641A (en) * 2021-12-31 2022-04-29 北京五八信息技术有限公司 File data processing method and device, electronic equipment and storage medium
CN115982504A (en) * 2023-02-22 2023-04-18 鲁班(北京)电子商务科技有限公司 Universal front-end engineering cache optimization deployment method and system
CN115982504B (en) * 2023-02-22 2023-06-30 鲁班(北京)电子商务科技有限公司 Universal front-end engineering cache optimal deployment method and system
CN116546093A (en) * 2023-07-04 2023-08-04 云账户技术(天津)有限公司 Resource acquisition method and device based on static resource management platform
CN116546093B (en) * 2023-07-04 2023-10-20 云账户技术(天津)有限公司 Resource acquisition method and device based on static resource management platform

Similar Documents

Publication Publication Date Title
CN107992557A (en) Static resource update method, device, storage medium and computer equipment
JP6410280B2 (en) Website access method, apparatus, and website system
US10078709B2 (en) Managing a display of results of a keyword search on a web page by modifying attributes of a DOM tree structure
CN108509209A (en) A kind of generation method, device, computer equipment and the storage medium of resource packet
CA2831381C (en) Recovery of tenant data across tenant moves
CN110083383A (en) Browser style compatibility method, device, computer equipment and storage medium
US9716771B2 (en) Cache control for web application resources
JP2012529115A (en) Web page optimization
CN105049486A (en) Version management and file pulling control methods for static files, version management and file pulling control devices, and version control system
US9984052B2 (en) Verifying content of resources in markup language documents
CN110401724A (en) File management method, ftp server and storage medium
CN106649395A (en) Webpage updating method and apparatus
CN104331369A (en) Browser-based webpage detection method and device, and server
CN108874409A (en) A kind of information updating method, device, server and system
CN106126693A (en) The sending method of the related data of a kind of webpage and device
CN107301137A (en) RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
US20100262647A1 (en) Granular data synchronization for editing multiple data objects
US10083156B2 (en) Mobile enablement of webpages
CN106815248B (en) Website analysis method and device
CN108920203A (en) A kind of page loading method and equipment
CN107408055B (en) Code cache system
CN103077186B (en) A kind of layer data treating apparatus and method
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product
CN109672534B (en) Network resource processing method and device, storage medium and electronic device
CN105956182B (en) A kind of method, apparatus and system of resource load

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180504

RJ01 Rejection of invention patent application after publication