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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com