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

HTTP caching method, device and user terminal

A caching and caching strategy technology, applied in the browser field, can solve problems such as poor browsing experience, data is easily eliminated, and affects the loading speed of web pages, so as to achieve a good browsing experience and improve the loading speed

Active Publication Date: 2020-12-04
ALIBABA (CHINA) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the storage of the http cache has a capacity limit. When the capacity limit is reached, if new http cache data needs to be saved, the http cache system will eliminate the http cache data that has not been used for the longest time according to a certain strategy to ensure that there is enough space to store new http cache data
For some pages with low access frequency, after the mobile browser caches the external image resources on the page, the user may not visit this page again, and these external image resources will not be used again, so Caching these external image resources is actually unnecessary capacity consumption, which increases the probability of triggering the elimination scene, makes the data that needs to be cached easy to be eliminated, affects the loading speed of the webpage, and the user's browsing experience is not good

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
  • HTTP caching method, device and user terminal
  • HTTP caching method, device and user terminal
  • HTTP caching method, device and user terminal

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0033] Please refer to image 3 , is a structural block diagram of the http cache device 400 provided in the first embodiment of the present invention. The http cache device 400 runs on a browser, corresponds to the server 200 , and provides services for users. It includes a page parsing module 410 , a webpage detection module 420 , a caching policy determination module 430 and a webpage display module 440 .

[0034] The page parsing module 410 is used to acquire webpage data and perform page parsing to generate a DOM tree.

[0035] For example, after the user opens the browser, the browser accesses a specific webpage according to the webpage address input by the user, obtains the data of the webpage and performs page analysis, and gradually generates a DOM tree.

[0036] The webpage detecting module 420 is used for determining the page structure of the webpage according to the data of the DOM tree.

[0037] In this embodiment, the page structure of the web page can be class...

no. 2 example

[0051] Please refer to Figure 4 , is a schematic flowchart of the http caching method provided by the second embodiment of the present invention. It should be noted that the http caching method described in the present invention does not use Figure 4 And the specific sequence described below is limited, and its basic principles and technical effects are the same as those of the first embodiment. For brief description, the parts not mentioned in this embodiment can refer to the corresponding content in the first embodiment. It should be understood that, in other embodiments, the order of some steps in the http caching method of the present invention can be exchanged according to actual needs, or some steps can also be omitted or deleted. The following will be Figure 4 The specific process shown will be described in detail.

[0052] Step S101, acquiring data of a webpage and performing page parsing to generate a DOM tree.

[0053] For example, after the user opens the bro...

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 embodiment of the invention provides an http (Hyper Text Transport Protocol) cache method, an http cache device and a user terminal and relates to the technical field of a browser. According to the http cache method, the http cache device and the user terminal provided by the invention, the method comprises the steps of performing page analysis through acquisition of data of a webpage to generate a DOM (Document Object Model) tree; determining a page structure of the webpage according to the data of the DOM tree; and determining a http cache strategy of external picture resources accordingto external picture resource characteristics loaded by a network and the page structure of the webpage where the external picture resource is located. Through setting of the corresponding http cachestrategy for the external picture resources, the unnecessary capacity consumption of an http cache can be reduced, the loading speed of the webpage is effectively improved and the browsing experienceof a user is good.

Description

technical field [0001] The present invention relates to the technical field of browsers, in particular to an http caching method, device and user terminal. Background technique [0002] Mobile browser is the main tool for mobile terminal (smart phone / tablet) users to browse mobile Internet web pages. Http caching is a mechanism for mobile browsers to locally save webpage resources that can be cached (or need to be verified), and the mobile browser determines whether the webpage resource is http-cached based on the cache information in the http response header. If it is a web page resource that can be cached (or needs to be verified), the mobile browser will cache the web page resource according to the calculated cacheable time. When the same web page resource needs to be loaded for subsequent web browsing, the cache can be used directly data (for the webpage resources that need to be verified, the mobile browser also needs to negotiate with the server whether the webpage re...

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/957
CPCG06F16/9574
Inventor 吴伟勇
Owner ALIBABA (CHINA) CO LTD