Method for caching HTML5 (Hypertext Markup Language, version 5) page resources at high speed by mobile application

A mobile application and page resource technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of code solidification, not supporting dynamic caching, relying on caching mechanisms, etc., to achieve low hardware requirements and improve experience degree, and the effect of easy promotion and application

Inactive Publication Date: 2018-02-23
凡学(上海)教育科技有限公司
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Before 2015, native applications accounted for 90% of the market share, but with the finalization of HTML5 (referred to as H5), Hybrid App (hybrid mode mobile application) has also become a trend, and most applications on the market today will use There are more or less H5 pages, the reason is very simple, the iteration of the H5 page does not need to be reviewed, but the H5 page also has its disadvantages, that is, the page loading cannot achieve the original effect
H5 page resources will be cached on CDN (Content Delivery Network, content distribution network) nodes, but in some cases when users update the H5 page, they find that the page has not been refreshed to the latest H5 resource, and then refresh the CDN node several times. Yes, and when the user does a time-limited spike, the H5 page needs to be refreshed in time. Obviously, this is not in line with the user's psychological expectations.
[0004] Existing technology of App: the caching of native App is relatively mature now, but it also has its obvious disadvantages: first, there is basically no caching mechanism for H5, and it completely depends on the browser's caching mechanism for H5; second, caching The code is solidified and does not support dynamic caching

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 for caching HTML5 (Hypertext Markup Language, version 5) page resources at high speed by mobile application
  • Method for caching HTML5 (Hypertext Markup Language, version 5) page resources at high speed by mobile application
  • Method for caching HTML5 (Hypertext Markup Language, version 5) page resources at high speed by mobile application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is carried out on the premise of the technical solution of the present invention, and detailed implementation and specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.

[0052] Such as figure 1 As shown, a method for caching HTML5 page resources in a mobile application includes the following steps:

[0053] 1) Set the data model of the cache resource list requested by the mobile application from the background server. The cache resource list includes: the first flag indicating whether the main cache switch is enabled, the second flag indicating whether the whitelist is enabled, server version information, and items that need to be deleted The local file directory, the whitelist to be cached, the domain name directory to be cached, and the specified url...

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 relates to a method for caching HTML5 (Hypertext Markup Language, version 5) page resources at a high speed by a mobile application. The method is characterized in comprising the following steps that: 1) setting a data model of a cached resource name list requested from a background server by the mobile application; 2) when the mobile application is started, sending a request for obtaining the cached resource name list to the background server, updating a local cached resource name list according to a return value of the background server, and loading corresponding cached resources; and 3) when the mobile application caches an HTML5 page, intercepting a network request which is sent to the background server from the mobile application, and obtaining network request result information according to the network request and the local cached resource name list. Compared with the prior art, the method has the advantages that an H5 page is refreshed in time in an App, H5 resources which need to be cached can be dynamically controlled and the like.

Description

technical field [0001] The invention relates to the field of software technology, in particular to a method for caching HTML5 page resources in mobile applications. Background technique [0002] Before 2015, native applications accounted for 90% of the market share, but with the finalization of HTML5 (referred to as H5), Hybrid App (hybrid mode mobile application) has also become a trend, and most applications on the market today will use There are more or less H5 pages, the reason is very simple, the iteration of the H5 page does not need to be reviewed, but the H5 page also has its disadvantages, that is, the page loading cannot achieve the original effect. [0003] H5 existing technology: H5 pages now have their own set of caching mechanisms. H5 page resources will be cached on CDN (Content Delivery Network, content distribution network) nodes, but in some cases when users update the H5 page, they find that the page has not been refreshed to the latest H5 resource, and t...

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): G06F17/30
CPCG06F16/9577
Inventor 杨帅张华康史亭
Owner 凡学(上海)教育科技有限公司
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