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

Request response method and device

A request-response and network-request technology, applied in the computer field, can solve problems such as frequent uncertain updates, difficult implementation, and difficulty in judging data update time, so as to reduce the number of data communications and improve reliability

Pending Publication Date: 2022-05-24
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

HTTP standard caching solutions mainly include strong caching and negotiation caching. Strong caching will set the caching time limit for the cached data. Negotiating caching is negotiated between the client and the server. The server judges whether the cache is available based on the time limit and the resource itself. The above two solutions Difficult to implement when uncertain updates are frequent and there is no entity file requesting data
The in-webpage caching scheme includes snapshot cache and timing cache, which can be applied to the situation where the requested data does not exist in physical files, but snapshot cache still needs to request new data every time, and timing cache is also difficult to judge the update time of data, which makes it easy to get to expired data

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
  • Request response method and device
  • Request response method and device
  • Request response method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled i...

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 provides a request response method and device, and the method comprises the steps: firstly responding to a network request of a browser, and searching a caching strategy corresponding to the network request; the caching strategy comprises caching time efficiency of caching response data corresponding to the network request; then, on the basis of the cache time efficiency, the cache timestamp of the cache response data and the current timestamp, whether the cache response data is valid or not is determined; and finally, under the condition that the cache response data is valid, feeding back the cache response data to the browser. According to the method and the device, different caching strategies can be configured according to the characteristics of different network requests, so that the caching response data of different network requests have different caching timeliness, the reliability of the caching response data is improved, new data does not need to be acquired from the server in each request, and the data communication frequency is reduced.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to a request-response method and device. Background technique [0002] In order to improve the access speed of the web page and reduce the pressure on the server, the browser usually adopts a caching scheme. Common caching schemes include the Hyper Text Transfer Protocol (Hyper Text Transfer Protocol, HTTP) standard caching scheme and the in-page caching scheme. HTTP standard caching schemes mainly include strong caching and negotiated caching. Strong caching will set the cache time limit for cached data, while negotiated caching will negotiate with the client and the server, and the server will determine whether the cache is available according to the time limit and the resource itself. The above two solutions It is difficult to implement in the case of frequent updates of uncertainty and no entity file for requesting data. The in-web page caching solution includes...

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): H04L67/568H04L67/5682H04L67/02
CPCH04L67/02
Inventor 李春
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD