Method for caching file resources in mobile phone application by H5 page

A mobile phone application and cache file technology, applied in resource allocation, special data processing applications, multi-programming devices, etc., can solve the problems of user traffic loss, multiple requests for the same resource, long loading time and user experience, and achieve high efficiency Effect

Pending Publication Date: 2022-05-27
XIAMEN YUEXUN INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This technology allows applications like Mobile Phones (Mobile) apps that require storing large amounts of memory or processing power from their servers quickly overwriting them when needed instead of rebuilding it yourself later at its original state. It also improves efficiency because only stores necessary content while keeping everything clean during loading.

Problems solved by technology

This patented technical problem addressed in this patents relates to improving performance when accessing content on an internet website with high bandwidth requirements such as video streaming over HTTP (Voice Over Internet Protocol). Current methods require that users wait until they receive enough data before being able to access it again after having been interrupted due to low communication quality caused by slow upload speeds. Additionally, current methods only allow limited types of resource files without any ability to handle complex media formats like JPEGs or MIMS videos.

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 file resources in mobile phone application by H5 page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0021] Cooperate figure 1 As shown, the present invention discloses a method for caching file resources in a mobile phone application by an H5 page, comprising the following steps:

[0022] S1, H5 page initiates network request connection;

[0023] S2, the cache system judges whether the network request is a file resource, and if so, executes step S3, otherwise ends the process;

[0024] S3. The cache system judges the cache status of the resource file. If it has been cached, it returns the cached resource to the H5 page, otherwise the cache system downloads the file resource, and then returns the downloaded resource to the H5 page;

[0025] S4 and H5 pages receive file resources for display.

[0026] Step S2 is specifically:

[0027] S21, the cache system intercepts the network request, and extracts the request parameters in the network request;

[0028] The specified domain name is preset, and the caching system filters the network addresses of all network requests accordin

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 discloses a method for caching file resources in a mobile phone application through an H5 page. The method comprises the following steps that S1, the H5 page initiates network request connection; s2, the cache system judges whether the network request is a file resource or not, if yes, the step S3 is executed, and if not, the process is ended; s3, the cache system judges the cache state of the resource file, if the resource file is cached, the cached resource is returned to the H5 page, otherwise, the cache system downloads the file resource, and then the downloaded resource is returned to the H5 page; and S4, the H5 page receives the file resources and displays the file resources. According to the method for caching the file resources in the mobile phone application through the H5 page, a user does not need to modify an H5 plug-in end, the caching function is achieved under the condition that any H5 code is not changed, and the result is directly used; and Imgt; the first-time picture loading can be realized by loading the network resources by the labels, and the picture resources are displayed by using the local cache file subsequently, so that the efficiency is high.

Description

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

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
Owner XIAMEN YUEXUN 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