Unlock instant, AI-driven research and patent intelligence for your innovation.

Data processing method and device, electronic equipment and storage medium

A data processing and data technology, applied in the computer field, to achieve the effect of improving usage efficiency, reducing dependence, and reducing the number of requests

Pending Publication Date: 2021-12-17
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in related technologies, the caching mechanism of the browser still needs to be optimized

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
  • Data processing method and device, electronic equipment and storage medium
  • Data processing method and device, electronic equipment and storage medium
  • Data processing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0050]In related technologies, although the browser can cache the front-end data by using the caching mechanisms of Application Cache and LocalStorage, both of these two caching mechanisms have defects. Specifically, the design of the application programming interface (API, Application Programming Interface) related to Application Cache is unreasonable, the supported functions are limited and the update is not timely, and it does not support the use of JavaScript technology for fine-grained data control (that is, to classify data so that data The granularity meets specific conditions) and other functions; moreover, when using these APIs, some preset rules need to be strictly followed, and the flexibility and usability of the APIs are poor and uncertain.

[0051] For the caching mechanism of LocalStorage, this technology only supports a single data t...

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 discloses a data processing method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining a first request of a front-end page, wherein the first request is used for requesting to obtain first data of a target server; judging whether first cache data which is not invalid exists in an index database (IndexDB) or not, wherein the first cache data corresponds to the first data; under the condition that the first cache data which is not invalid exists in the IndexDB, returning the first cache data to the front-end page; and under the condition that the first cache data which is not invalid does not exist in the IndexDB, obtaining the first data from the target server, and returning the first data to the front-end page.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, electronic equipment and storage medium. Background technique [0002] In related technologies, the browser may cache the front-end data by using cache mechanisms of Application Cache (Application Cache) and LocalStorage. Among them, Application Cache is the earliest caching mechanism provided by Hypertext Markup Language 5 (HTML5, HyperText Markup Language 5) technology. It can set the resources that the browser needs to cache by configuring the manifest file, so that the network (Web) application can be offline. In other words, when the user is offline (that is, the client with the browser installed is not connected to the network), even if the user clicks the refresh button of the browser, the web application can be loaded and run normally. Compared with Application Cache, LocalStorage is a new feature proposed by HTML5 techno...

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): G06F16/957G06F16/25
CPCG06F16/9574G06F16/252
Inventor 张欣
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD