Static resource real-time effecting method and system

A technology of static resources and algorithms, applied in special data processing applications, instruments, website content management, etc.

Inactive Publication Date: 2016-10-12
北京思特奇信息技术股份有限公司
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Since static resources use 304 as a negotiation cache, it still needs to communicate with the server once; currently, it is commonly used to force the browser to use the local cache, and only when the web page is updated, the browser will actively abandon the cache by updating the path of the static resource and load The static resources of the new path; however

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
  • Static resource real-time effecting method and system
  • Static resource real-time effecting method and system
  • Static resource real-time effecting method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0036] A real-time validation method for static resources, including:

[0037] Such as figure 1 As shown, generate and update the path name of the static resource:

[0038] When developing a web page, perform data summary algorithm calculations on all static resources of the web page, embed the calculation results into the path names of the corresponding static resources, and generate the path names of all static resources respectively;

[0039] When the webpage is updated, the data summary algorithm calculation is performed on all the static resources of the webpage separately, and only the new calculation results are replaced with the original calculation results in the corresponding path names, and the path name...

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 relates to a static resource real-time effecting method and system. The static resource real-time effecting method includes: calculating a static resource through the data digest algorithm and embedding the calculation result in a path name. The calculation result obtaining from the data digest algorithm, corresponding to the static resource will change only when the static resource changes, and then the path name of the static resource changes; the static source is uploaded from a server only when the path name changes; the path name of an unchanged static resource does not change, and then the static resource is uploaded from a local cache; and the static resource real-time effecting method and system can achieve non-coverage type issue and real-time rapid effecting of the static resources.

Description

technical field [0001] The invention relates to the technical field of front-end development, in particular to a method and system for taking effect of static resources in real time. Background technique [0002] Since static resources use 304 as a negotiation cache, it still needs to communicate with the server once; currently, it is commonly used to force the browser to use the local cache, and only when the web page is updated, the browser will actively abandon the cache by updating the path of the static resource and load The static resources of the new path; however, the path to update the static resources is: add a timestamp to the path name of the static resource, and use the update time as the path name of all the static resources every time the web page is updated The new timestamp; this method will cause some static resources that have not changed to also abandon the local cache, and load the static resources of the new path. Contents of the invention [0003] T...

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
IPC IPC(8): G06F17/30
CPCG06F16/9574G06F16/972
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