Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A static resource management method

A management method and static resource technology, applied in the field of static resource management, can solve problems such as inconvenient use and achieve the effect of reducing the number

Active Publication Date: 2019-05-14
厦门易灵网络科技有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, the linked files are usually updated by adding a unified version number of the file at the position where the static resource identifier is referenced, but when the file is modified, using a unified version number will bring a lot of unnecessary refreshes, such as modifying a One of thousands of resources also needs to update all resources, which is inconvenient to use

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
  • A static resource management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0023] Such as figure 1 As shown, the present invention provides a static resource management method, comprising the following steps:

[0024] S01: Determine the directory path of resource files, and determine the path and depth of resource files that need to be merged and controlled;

[0025] S02: traverse the resource file directory, obtain the timestamp of the last modification time of the resource file or obtain the timestamp of the last modification time of the subdirectory where the resource file is located, and associate it with the correspondin...

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 management method, which comprises the following steps of: S01: determining a directory path of a resource file, and determining the path and the depth of a resource file which needs to be subjected to merger control; S02: traversing a resource file catalog, obtaining the timestamp of the last revision time of the resource file, or obtaining the timestamp of the last revision time of a subcatalog where the resource file is positioned, and enabling the timestamp to be related to a corresponding file path and a subcatalog path; S03: converting the timestamp into a file version number, enabling the file version number to be related to the above related file path or the subcatalog path to generate a version control file, and storing the version control file; S04: calling the resource file, matching the file path of the called resource file with the version control file, and obtaining a corresponding version number; and S05: updating the version number to the resource path of a finally-output html (Hypertext Markup Language). When the resources are called, the respective version number of each resource file is searched to realize accurate update.

Description

technical field [0001] The invention relates to a static resource management method. Background technique [0002] With the development of the Internet industry, the information provided by webpage content is becoming more and more abundant, and the data content displayed on the webpage is also becoming more and more abundant. In the process of webpage development, it is usually necessary to link some static resources (StaticResource), such as JavaScript script files, Cascading Style Sheets (Cascading Style Sheets, CSS) resources or pictures, and the like. In order to improve the speed for users to access webpages with resources such as pictures, it is generally necessary to perform strong caching on static resources such as pictures, so that users can directly read the static resources in the cache of the browser. When the files corresponding to resources such as linked pictures are modified, the browser needs to be notified to update the modified files. In the prior art,...

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 Patents(China)
IPC IPC(8): G06F16/18
CPCG06F16/1873
Inventor 黄亮曹政
Owner 厦门易灵网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products