Webpage resource caching method and device, storage medium and electronic device

A web page resource and resource caching technology, applied in the computer field, can solve the problem of low efficiency of web page resource caching, etc.

Active Publication Date: 2019-07-16
TENCENT TECH (SHENZHEN) CO LTD
View PDF12 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a web page resource caching method, device, storage medium and electronic device, to at least solve the low efficiency of web page resource caching in the prior art question

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
  • Webpage resource caching method and device, storage medium and electronic device
  • Webpage resource caching method and device, storage medium and electronic device
  • Webpage resource caching method and device, storage medium and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] In an embodiment of the present invention, an embodiment of the above web page resource caching method is provided. As an optional implementation, the method for caching webpage resources can be applied to, but not limited to, such as figure 1 In the shown application environment, the terminal 102 is connected to the server 104 through the network 106, and the terminal 102 is used to send a webpage resource request to the server 104, wherein the webpage resource request is used to request the target webpage resource from the server 104; the receiving server 104 responds to the webpage The target webpage resource and cache indication information sent by the resource request, wherein the cache indication information is used to indicate the target cache location of the target webpage resource in the terminal 102, and multiple cache locations are pre-allocated in the terminal 102, and the multiple cache locations include the target cache location; cache the target web page ...

Embodiment 2

[0079] According to an embodiment of the present invention, there is also provided a webpage resource caching device for implementing the above webpage resource caching method, such as Figure 4 As shown, the device includes:

[0080] 1) a sending module 42, configured to send a webpage resource request to a server, wherein the webpage resource request is used to request a target webpage resource from the server;

[0081] 2) The receiving module 44 is configured to receive the target webpage resource and cache indication information sent by the server in response to the webpage resource request, wherein the cache indication information is used to indicate the target cache location of the target webpage resource in the terminal, and the terminal has pre-allocated multiple cache locations, multiple cache locations including the target cache location;

[0082] 3) The caching module 46 is configured to cache the target webpage resource to the target cache location indicated by th...

Embodiment 3

[0134] The application environment of the embodiment of the present invention may be, but not limited to, refer to the application environment in Embodiment 1, which will not be repeated in this embodiment. The embodiment of the present invention provides an optional specific application example for implementing the above method for caching webpage resources.

[0135] As an optional embodiment, the above web page resource caching method can be applied to, but not limited to, such as Figure 5 In the scenario where HTTP caching is performed on webpage resources as shown. The front end makes a special definition of the url of the web resource. This definition is actually flexible, and the front end can be controlled at will, but it needs to be aligned with the terminal (kernel). After the front end defines the level of the web resource url, normal Make a request to the web server, and the web server returns a response Respnse. These Respone headers contain CacheControl informat...

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 webpage resource caching method and device, a storage medium and an electronic device. The method comprises: sending a webpage resource request to a server, wherein the webpage resource request is used for requesting a target webpage resource from the server; receiving a target webpage resource and cache indication information sent by the server in response to the webpageresource request, the cache indication information being used for indicating a target cache position of the target webpage resource in the terminal, a plurality of cache positions being pre-allocatedin the terminal, the plurality of cache positions including the target cache position; and caching the target webpage resource to a target cache position indicated by the cache indication information. The technical problem that in the prior art, the webpage resource caching efficiency is low is solved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a web page resource caching method, device, storage medium and electronic device. Background technique [0002] With the development and progress of Internet technology, more and more web pages and applications have been developed, and people can use devices such as terminals to access them. In order to improve the access efficiency of webpage resources, the terminal caches some webpage resources. The current standard for caching webpage resources is a single cache mode, that is, caching webpage resources that need to be cached in a storage space of a fixed size on the terminal. However, this caching mechanism is too rough, and such a processing method cannot exert the best effect of web page resource caching. [0003] The storage space for web page resource cache storage in the terminal is very limited. At the beginning of the standard design, the Internet was just starting at...

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/957
CPCG06F16/9574
Inventor 李天鹏
Owner TENCENT TECH (SHENZHEN) CO LTD
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