Method and device for realizing caching of any resource in APP embedded webpage based on HTTP protocol

An HTTP protocol and web resource technology, which is applied in the field of caching arbitrary resources in APP embedded web pages based on HTTP protocol. effect of speed

Active Publication Date: 2016-11-16
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the purpose of the present invention is to provide a method and device for caching any resource in an APP embedded webpage based on the HTTP protocol, so as to solve the problem of long loading time of APP embedded webpage and its dynamic update performance

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
  • Method and device for realizing caching of any resource in APP embedded webpage based on HTTP protocol
  • Method and device for realizing caching of any resource in APP embedded webpage based on HTTP protocol
  • Method and device for realizing caching of any resource in APP embedded webpage based on HTTP protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0049] The present invention will be specifically described below in conjunction with a specific embodiment, but it should be noted that this specific embodiment is only for better describing the present invention, and does not constitute an improper limitation of the present invention.

[0050] Such as figure 2 Shown is a detailed flowchart of a method for caching any resource in an APP embedded webpage based on the HTTP protocol according to an embodiment of the present invention.

[0051] Step S201: According to the loading request of the target webpage, determine the update status of the webpage resources of the target webpage.

[0052] First, the user can trigger an HTTP request to load a target web page (HTML page or WAP site) embedded in the App by clicking or inputting a URL. In an embodiment of the present invention, an HTTP request is initiated to the target webpage through the webview control.

[0053] Then, based on parameters such as Last-Modified, Date, Conten...

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 method and device for realizing caching of any resource in an APP embedded webpage based on an HTTP protocol. The method comprises the following steps: judging an update condition of a webpage resource of a target webpage according to a loading request for the webpage resource of the target webpage; if the webpage resource of the target webpage is updated, loading the target webpage according to the loading request, and downloading the webpage resource of the target webpage to the local, establishing or updating index information of the webpage resource of the target webpage; if the webpage resource of the target webpage is not updated, acquiring the index information and a local webpage resource corresponding to the target webpage, and loading the local webpage resource. By the adoption of the method and device provided by the invention, the interaction cost of loading the webpage by the APP and the embedded webpage after the webpage is updated is effectively reduced, the loading speed of the APP embedded webpage is increased, and the independent dynamic updating control function in a client is realized.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and device for realizing caching of any resource in an APP embedded webpage based on the HTTP protocol. Background technique [0002] As the current demand for App product updates continues to accelerate, the version update cycle of super APPs is being constrained by the client version release cycle, and due to the high cost of APP dynamic update technology, product developers often use native development and HTML site embedding Generate APP in a mixed way. Due to problems such as the kernel performance of the APP embedded browser, compared with loading the native interface, the APP embedded browser takes a long time to load when loading the APP embedded webpage (HTML page or WAP site). Problem with poor experience. [0003] In order to solve the above problems, in the prior art, one method is that the APP obtains the cache configuration information of the target webpa...

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): H04L29/08G06F17/30
CPCH04L67/02H04L67/146H04L67/306G06F16/9574H04L67/568
Inventor 刘建军
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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