Silent update method and device for front-end resource and computer equipment

An update method and computer program technology, applied in the computer field, can solve a large number of problems such as operation and maintenance and R&D costs

Pending Publication Date: 2021-11-19
杭州玳数科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this solution requires maintaining a separate middle layer and protocol, and maintaining a middle layer requires a lot of operation and maintenance and R&D costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Silent update method and device for front-end resource and computer equipment
  • Silent update method and device for front-end resource and computer equipment
  • Silent update method and device for front-end resource and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] figure 1 It is a flowchart of a method for silently updating front-end resources in an embodiment of the present invention.

[0042] Such as figure 1 As shown, the method includes the following steps:

[0043] S1, after the front-end resources are updated, the client packages the front-end resources, and inserts the identifier file version.json of the front-end resources during packaging, wherein the first identifier in the identifier file version.jso...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a silent update method and device for front-end resources and computer equipment. The method comprises the steps that a client packages the front-end resources, and inserts an identifier file version.json of the front-end resources during packaging; the client pushes the packaged front-end resources to a Web server side; the Web server side reads content of the identifier file version.json through a shell script, and stores a first identifier in an environment variable; a proxy server reads a value of the environment variable and returns the value to the client as response header information which carries the first identifier; and the client obtains a local identifier from a local memory, and updates the local identifier to the first identifier when the first identifier is inconsistent with the local identifier. Therefore, the client can actively push an updated identifier to the server without an intermediate layer, and the local identifier can be updated to the latest identifier, so that silent update of the front-end resource is realized. The invention has the advantages of low cost and light weight.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for silently updating front-end resources, a device for silently updating front-end resources, and computer equipment. Background technique [0002] With the development of browsers, Web (World Wide Web, World Wide Web), and mobile terminals, front-end site technologies are widely used in most scenarios in society, and Web sites for various application services are also experiencing rapid development and functional iteration. Among them, the most frequent problem is the browser's cache of the page. Its appearance has improved the user's loading speed of the Web site, and it has also brought visual limitations. Developers do not want users to access the site cache of the old version, but it is unavoidable for users to access the site resources of the old version (hereinafter referred to as the old site). If the user accesses the interface service of the new sit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F8/71
CPCG06F8/65G06F8/71
Inventor 李博文杨秦敏宁海元
Owner 杭州玳数科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products