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

Web resource processing method and device

A web resource and processing method technology, applied in the field of web resource processing methods and devices, can solve the problems of limited capacity, elimination of http cache resources, etc., and achieve the effect of reducing redundancy

Active Publication Date: 2018-01-09
ALIBABA (CHINA) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For the http cache service used by mobile browsers, due to the limitation of the hardware configuration of mobile devices, its capacity is limited
In this way, it means that as the number of pages browsed by users increases, some effective http cache resources will be eliminated due to the cache capacity reaching the upper limit

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
  • Web resource processing method and device
  • Web resource processing method and device
  • Web resource processing method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0043] image 3 It shows a flow chart of a method for processing webpage resources provided by the first embodiment of the present invention, please refer to image 3 , what this embodiment describes is the processing flow of the browser, and the method includes:

[0044] Step S110, receiving the web page resource obtained by the web server;

[0045] Step S120, according to the information of the webpage resource, generate the header cache data including the response header of the webpage resource and the text cache data including the response text of the webpage resource, the header cache data includes points to the The first key value of the above text cache data, the same text cache data has the same first key value;

[0046] The first key value includes: the type name of the webpage resource, a hash value calculated based on the response text of the webpage resource, and a character string generated after encoding.

[0047] For example, the format of the first key value...

no. 2 example

[0145] Figure 4 A flow chart of a method for processing web page resources provided by the second embodiment of the present invention is shown. see Figure 4 , this embodiment describes the browser's process of processing cache writing, and the method includes:

[0146] Step S210, receiving the web page resource obtained by the web server;

[0147] Step S220, judging whether the web page resource can be cached;

[0148] For whether a web page resource can be cached by HTTP, the browser can judge based on the HTTP response header and cache-related fields or whether verification is required. , the browser can determine that the webpage resource can be cached.

[0149] If yes, execute step S230. Otherwise, no caching is performed, that is, the cache writing process ends.

[0150] Step S230, judging whether the webpage resource meets a predetermined condition;

[0151] If the predetermined condition is met, perform step S240, otherwise, perform step S260.

[0152] Since t...

no. 3 example

[0168] Figure 5 It shows a flow chart of a method for processing webpage resources provided by the third embodiment of the present invention, please refer to Figure 5 , this embodiment describes the browser's process of processing cache reading, and the method includes:

[0169] Step S310, in response to the webpage resource loading request, use the unique resource identifier of the webpage resource to be loaded as the key value to query the corresponding effective cache data locally;

[0170] If the query result does not exist, execute step S320, and if the query result exists, execute step S330.

[0171] In step S320, request the webpage resource to be loaded from the web server, and then execute step S210 to enter the caching process, that is, the process described in the second embodiment, which will not be repeated here.

[0172] Step S330, parsing the found valid cache data;

[0173] Step S340, judging whether the format of the effective cache data conforms to the p...

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 a method and device for processing a webpage resource. Redundancy of cache data can be reduced; and an http cache space can store relatively much cache data. The method comprises the steps as follows: the webpage resource obtained by a web server is received; a head cache data comprising a response head of the webpage resource and a text cache data comprising a response text of the webpage resource are generated according to the information of the webpage resource; the head cache data comprises a first key value pointing at the text cache data; the same text cache data has the same first key value; and the head cache data and the text cache data are cached respectively.

Description

technical field [0001] The present invention relates to the technical field of computer mobile communication, in particular to a method and device for processing web page resources. Background technique [0002] After the browser loads the web page resources (web resources) provided by the web server, it will cache the web resources that can be cached (or need to be verified) according to the response header (response headers) information of the http response data of the web resources. , so that when the browser uses the same webpage resource later, the locally saved copy of the webpage resource can be reused, thereby reducing the number of requests for the webpage resource from the web server, thereby reducing the traffic consumption caused by loading resources from the web server. In addition, using a locally saved copy can speed up the parsing and rendering of the page, which can improve the user's browsing experience. [0003] HTTP response data, also known as http resp...

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): G06F17/30
CPCG06F16/9574G06F16/958
Inventor 梁捷吴伟勇
Owner ALIBABA (CHINA) CO LTD