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

Cache updating method, terminal and system

An update method and terminal technology, applied in the transmission system, electrical components, etc., can solve the problems that the background server cannot update data synchronously, cannot guarantee the correctness of cached data at a small cost, and the update efficiency is low, so as to improve data processing performance Effect

Active Publication Date: 2018-08-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the existing technology, the inventor found that the existing technology has at least the following problems: Html5's local storage technology localStorage will not eliminate and update cached data by itself, and the storage space is limited
Although the standard Http cache can automatically eliminate the cache by setting the cache timeout time, the time granularity is not easy to control, and the setting is too large or too small to meet the actual needs; although you can add the If-Modify-Since header to the request to get the latest Data, but each request needs to be verified, and a network connection needs to be initiated, resulting in low update efficiency
The above two solutions are only to solve the storage problem, and cannot effectively update the data synchronously with the background server, and cannot guarantee the correctness of the cached data at a small cost

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
  • Cache updating method, terminal and system
  • Cache updating method, terminal and system
  • Cache updating method, terminal and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved more clear, the technical solutions of the embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only the present invention. Some embodiments, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.

[0046] Please refer to figure 1 , Which is a method flowchart of the first embodiment of the cache update method of the embodiment of the present invention. This embodiment is mainly applied to terminals capable of running Web applications, including smart phones, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III, moving picture experts compressed stand...

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 cache update method, terminal and system. The cache update method includes: starting the web application, recording the start time of the web application, receiving the application download request of the web application, if there is AJAX cache data corresponding to the application download request stored locally, obtaining the record in the AJAX cache data and downloading it to the background server The timestamp of the sending time, to determine whether the startup time is less than or equal to the timestamp, if yes, there is no need to update the AJAX cache data; otherwise, send the data verification request of the AJAX cache data to the background server corresponding to the application download request, according to the return of the background server Data update AJAX cache data. This technical solution only verifies the cached data downloaded before the web application is started, and does not verify the cached data downloaded after the web application is started, thereby ensuring the correctness of the cached data at a relatively small cost.

Description

Technical field [0001] The present invention relates to the technical field of web page development, in particular to a cache update method, terminal and system. Background technique [0002] AJAX refers to Asynchronous JavaScript and XML (Asynchronous JavaScript and XML), AJAX is a technology used to create interactive Web applications. Through AJAX, JavaScript can use JavaScript's XMLHttpRequest object to directly communicate with the server. Through this object, JavaScript can exchange data with the Web server without reloading the page. [0003] The existing standard Http cache and Html5's local storage technology localStorage can both be used to provide data for offline applications when the network is disconnected. [0004] During the research and practice of the prior art, the inventor found that the prior art has at least the following problems: Html5's local storage technology localStorage will not eliminate and update cached data by itself, and storage space is limited. A...

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): H04L29/08
Inventor 龙海建
Owner TENCENT TECH (SHENZHEN) CO LTD