CN107734022B - Static resource file downloading method, mobile terminal and computer readable storage medium - Google Patents
Static resource file downloading method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN107734022B CN107734022B CN201710927731.4A CN201710927731A CN107734022B CN 107734022 B CN107734022 B CN 107734022B CN 201710927731 A CN201710927731 A CN 201710927731A CN 107734022 B CN107734022 B CN 107734022B
- Authority
- CN
- China
- Prior art keywords
- static resource
- resource file
- server
- program application
- downloading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000003068 static effect Effects 0.000 title claims abstract description 494
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000007906 compression Methods 0.000 claims abstract description 72
- 230000006835 compression Effects 0.000 claims abstract description 72
- 238000004140 cleaning Methods 0.000 claims description 42
- 238000012795 verification Methods 0.000 claims description 12
- 238000013144 data compression Methods 0.000 claims description 11
- 238000004806 packaging method and process Methods 0.000 claims description 6
- 238000012856 packing Methods 0.000 claims 1
- 230000005540 biological transmission Effects 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1744—Redundancy elimination performed by the file system using compression, e.g. sparse files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a static resource file downloading method, a mobile terminal and a computer readable storage medium, wherein the static resource file downloading method comprises the following steps of sending a static resource file downloading request to a server when a program application is started, so that the server packs and compresses a plurality of static resource files to obtain a static resource file compression package when acquiring a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, and returning the static resource file compression package to the mobile terminal; and receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files. The invention greatly reduces the downloading time of the static resource file and improves the starting speed of the program application by reducing the analysis time of the server, eliminating unnecessary connection time and reducing the data transmission quantity.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a static resource file downloading method, a mobile terminal and a computer readable storage medium.
Background
With the rapid development of mobile terminals, the popularity of mobile terminals is also increasing, and the function expansion of the mobile terminals is realized by installing program applications in the mobile terminals. When the mobile terminal starts the program application, a large number of static resource files such as resource pictures and resource icons need to be downloaded from the background server. Because the number of the static resource files is large, a long time is required to complete the downloading of the static resource files.
At present, the downloading of the static resource file is accelerated through a CDN (Content Delivery Network), and the downloading time of the static resource file is reduced. However, each static resource file is downloaded separately, a connection with the server needs to be established in each downloading process, and a relatively long connection time needs to be consumed.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a static resource file downloading method, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem of how to reduce the downloading time of a static resource file so as to improve the starting speed of a program application.
In order to achieve the above object, the present invention provides a method for downloading a static resource file, which comprises the following steps:
when a program application is started, sending a static resource file downloading request to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, packaging and compressing the plurality of static resource files to obtain a static resource file compression package, and returning the static resource file compression package to a mobile terminal;
and receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files.
Optionally, before the step of sending the static resource file download request to the server, the method further includes:
when the program application is started, judging whether a static resource file is cached in a preset storage area;
if the static resource file is cached in the preset storage area, the cached static resource file is obtained from the preset storage area;
if the static resource file is not cached in the preset storage area, the step of sending a static resource file downloading request to the server is executed;
after the step of analyzing the static resource file compression package to obtain a plurality of static resource files:
and caching the static resource files to the preset storage area.
Optionally, before the step of obtaining the cached static resource file from the preset storage area, the method further includes:
if the static resource file is cached in the preset storage area, calling an update verification interface to obtain a time stamp of a static resource file index table in the server;
judging whether the static resource file index table in the server is updated or not according to the timestamp
If the index table of the static resource file in the server is updated, executing the step of sending a static resource file downloading request to the server;
and if the static resource file index table in the server is not updated, executing the step of acquiring the cached static resource file from the preset storage area.
Optionally, the static resource file downloading method further includes:
calling an updating verification interface at intervals of preset time to obtain a timestamp of a static resource file index table in the server, and judging whether the static resource file index table in the server is updated or not according to the timestamp;
when the static resource file index table in the server is updated, sending a static resource file downloading request to the server, and receiving a static resource file compression packet returned by the server based on the static resource file downloading request;
and analyzing the static resource file compression package to obtain the latest static resource file, and replacing the static resource file cached in a preset storage area with the latest static resource file.
Optionally, before the step of sending a static resource file download request to a server and receiving a static resource file compression package returned by the server based on the static resource file download request, the method further includes:
when the static resource file index table in the server is updated, detecting whether the current network environment is a wireless network environment;
and when the current network environment is detected to be the wireless network environment, executing the steps of sending a static resource file downloading request to a server and receiving a static resource file compression package returned by the server based on the static resource file downloading request.
Optionally, before the step of sending the static resource file download request to the server, the method further includes:
when the program application is started, judging whether the residual available memory of the system is larger than the memory required by running the program application;
if the residual available memory of the system is larger than the memory required for running the program application, executing the step of sending a static resource file downloading request to the server;
and if the residual available memory of the system is less than or equal to the memory required by the running program application, cleaning the running program application to release the system memory.
Optionally, the step of cleaning the running program application to release the system memory includes:
determining a cleaning sequence of each running program application according to the memory occupation value and the use frequency of each running program application;
and sequentially cleaning the corresponding running program applications according to the cleaning sequence to release the system memory until the remaining available memory of the system is larger than the memory required by running the program applications.
Optionally, the step of determining a cleaning sequence of each running program application according to the memory usage value and the use frequency of each running program application includes:
calculating a cleaning score of each running program application according to the memory occupation value and the use frequency of each running program application;
and determining the cleaning sequence of each running program application according to the cleaning score of each running program application.
In addition, to achieve the above object, the present invention also provides a mobile terminal, including: a memory, a processor, and a static resource file downloading program stored on the memory and executable on the processor, the static resource file downloading program when executed by the processor implementing the steps of:
when a program application is started, sending a static resource file downloading request to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, packaging and compressing the plurality of static resource files to obtain a static resource file compression package, and returning the static resource file compression package to a mobile terminal;
and receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files.
The invention also provides a computer-readable storage medium, on which a static resource file downloading program is stored, which, when executed by a processor, implements the steps of:
when a program application is started, sending a static resource file downloading request to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, packaging and compressing the plurality of static resource files to obtain a static resource file compression package, and returning the static resource file compression package to a mobile terminal;
and receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files.
The invention provides a static resource file downloading method, a mobile terminal and a computer readable storage medium, when a program application is started, a static resource file downloading request is sent to a server, so that when the server acquires a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, the plurality of static resource files are packed and compressed to acquire a static resource file compression package, the static resource file compression package is returned to the mobile terminal, then the mobile terminal receives the static resource file compression package returned by the server based on the static resource file downloading request and analyzes the static resource file compression package to acquire a plurality of static resource files, the scheme establishes a static resource file index table based on all the static resource files required by the program application start, and reduces the analysis time of the server, in addition, the static resource files are all packaged, multiple times of downloading are changed into one time of downloading, unnecessary connection time is eliminated, meanwhile, the packaged static resource files are compressed, data transmission amount can be reduced, and due to the fact that the analysis time of a server is shortened, the unnecessary connection time is eliminated, and the data transmission amount is reduced, the downloading time of the static resource files is greatly reduced, and the starting speed of program application is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a flowchart illustrating a static resource file downloading method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a static resource file downloading method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a static resource file downloading method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for downloading a static resource file according to a sixth embodiment of the present invention;
fig. 6 is a detailed flowchart of the step of clearing the running program application to release the system memory shown in fig. 5.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the above mobile terminal hardware structure, various embodiments of the mobile terminal of the present invention are provided.
Referring to fig. 1, in a first embodiment of the mobile terminal of the present invention, the mobile terminal includes: a memory 109, a processor 110 and a static resource file downloading program stored in the memory, wherein the processor 110 is configured to call the static resource file downloading program stored in the memory 109 and execute the following steps:
when a program application is started, sending a static resource file downloading request to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, packaging and compressing the plurality of static resource files to obtain a static resource file compression package, and returning the static resource file compression package to a mobile terminal;
and receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
when the program application is started, judging whether a static resource file is cached in a preset storage area;
if the static resource file is cached in the preset storage area, the cached static resource file is obtained from the preset storage area;
if the static resource file is not cached in the preset storage area, the step of sending a static resource file downloading request to the server is executed;
after the step of analyzing the static resource file compression package to obtain a plurality of static resource files:
and caching the static resource files to the preset storage area.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
if the static resource file is cached in the preset storage area, calling an update verification interface to obtain a time stamp of a static resource file index table in the server;
judging whether the static resource file index table in the server is updated or not according to the timestamp
If the index table of the static resource file in the server is updated, executing the step of sending a static resource file downloading request to the server;
and if the static resource file index table in the server is not updated, executing the step of acquiring the cached static resource file from the preset storage area.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
calling an updating verification interface at intervals of preset time to obtain a timestamp of a static resource file index table in the server, and judging whether the static resource file index table in the server is updated or not according to the timestamp;
when the static resource file index table in the server is updated, sending a static resource file downloading request to the server, and receiving a static resource file compression packet returned by the server based on the static resource file downloading request;
and analyzing the static resource file compression package to obtain the latest static resource file, and replacing the static resource file cached in a preset storage area with the latest static resource file.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
when the static resource file index table in the server is updated, detecting whether the current network environment is a wireless network environment;
and when the current network environment is detected to be the wireless network environment, executing the steps of sending a static resource file downloading request to a server and receiving a static resource file compression package returned by the server based on the static resource file downloading request.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
when the program application is started, judging whether the residual available memory of the system is larger than the memory required by running the program application;
if the residual available memory of the system is larger than the memory required for running the program application, executing the step of sending a static resource file downloading request to the server;
and if the residual available memory of the system is less than or equal to the memory required by the running program application, cleaning the running program application to release the system memory.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
determining a cleaning sequence of each running program application according to the memory occupation value and the use frequency of each running program application;
and sequentially cleaning the corresponding running program applications according to the cleaning sequence to release the system memory until the remaining available memory of the system is larger than the memory required by running the program applications.
Further, the processor 110 may be configured to call the static resource file downloading program stored in the memory 109, and further perform the following steps:
calculating a cleaning score of each running program application according to the memory occupation value and the use frequency of each running program application;
and determining the cleaning sequence of each running program application according to the cleaning score of each running program application.
The specific embodiment of the mobile terminal of the present invention is substantially the same as the specific embodiments of the static resource file downloading method described below, and will not be described herein again.
Further, the present invention also provides a wireless hotspot sharing method, which is applied to the mobile terminal shown in fig. 1, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a static resource file downloading method of the present invention.
In this embodiment, the method for downloading the static resource file includes:
step S101, when a program application is started, sending a static resource file downloading request to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, the server packs and compresses the plurality of static resource files to obtain a static resource file compression package, and returns the static resource file compression package to a mobile terminal;
the static resource file downloading method is applied to a mobile terminal, the mobile terminal comprises a smart phone, a tablet personal computer and the like, and a plurality of program applications such as WeChat, Tencent video, Internet-accessible cloud music and the like are installed in the mobile terminal. The user can start the corresponding program application based on the program application icon displayed on the main interface of the mobile terminal. The method comprises the steps that when the mobile terminal detects that a program application is started, a static resource file downloading request is sent to a server, the server receives the static resource file downloading request sent by the mobile terminal, a plurality of index numbers are obtained from the static resource file downloading request, then a plurality of corresponding static resource files are obtained from a static resource file index table according to the index numbers, namely, downloading addresses of the corresponding static resource files are obtained based on the index numbers, the corresponding static resource files are obtained from the static resource file index table based on the downloading addresses of the static resource files, finally, the static resource files are packaged and compressed to obtain a static resource file compression package, and the static resource file compression package is returned to the mobile terminal. The server establishes a static resource file index table of each program application according to all static resource files required by each program application, and then converts the download address of each static resource file according to the static resource file index table, so that the download address is shortened, and the time for the server to analyze the download address is greatly reduced.
For example, assuming that the static resource file with index number 1 corresponds to a download address of http:// gate.nubia.cn/images/error _ triangle _ up.jpg, and the static resource file with index number 2 corresponds to a download address of http:// gate.nubia.cn/images/error _ triangle _ down.jpg, the two download addresses are converted into http:// gate.nubia.cn/1 and http:// gate.nubia.cn/2 based on the index numbers in the static resource file index table.
The server packages a plurality of static resource files into a static resource file package with a preset data format, specifically, the data format of the static resource file package is 'filename length + filename + file size + file content', wherein the filename length of the static resource file occupies 1 byte, the file size occupies 4 bytes, and the file content is in a binary data format. For example, the number of the static resource files is three, which are respectively a static resource file a, a static resource file B and a static resource file C, and the data format after the three static resources are packaged into a static resource file package is "the file name length of the static resource file a + the file name of the static resource file a + the file size of the static resource file a + the file content of the static resource file a + the file name length of the static resource file B + the file name of the static resource file B + the file size of the static resource file B + the file content of the static resource file B + the file name length of the static resource file C + the file size of the static resource file C + the file content of the static resource file C".
In specific implementation, when the server packages a plurality of static resource files, the server calculates the data compression ratio of each sequential combination of static resource file packages, compares the data compression ratio of each sequential combination of static resource file packages, obtains the sequential combination of static resource file packages with the largest data compression ratio, then packages the plurality of static resource files based on the sequential combination with the largest data compression ratio, and compresses the static resource file packages to obtain the static resource file compression packages, so as to ensure that the amount of data transmitted to the mobile terminal is the minimum, and further improve the starting speed of the program application. For example, if there are three static resource files, namely static resource file a, static resource file B, and static resource file C, the sequential combination includes six, namely sequential combination 1, namely static resource file a, static resource file B, and static resource file C; sequentially combining 2, namely a static resource file A, a static resource file C and a static resource file B; sequentially combining 3, namely a static resource file B, a static resource file A and a static resource file C; sequentially combining 4, namely a static resource file B, a static resource file C and a static resource file A; sequentially combining 5, namely a static resource file C, a static resource file A and a static resource file B; and sequentially combining 6, namely the static resource file C, the static resource file B and the static resource file A. And calculating to obtain data compression ratios a, B, C, d, e and f of the sequence combination 1, the sequence combination 2, the sequence combination 3, the sequence combination 4, the sequence combination 5 and the sequence combination 6, and comparing to obtain the data compression ratio d of the sequence combination 4 to be the maximum, so that a plurality of static resource files are packaged and compressed according to the sequence combination 4, namely the sequence of the static resource file B, the static resource file C and the static resource file A. When there are multiple maximum data compression ratios, a plurality of static resource files are combined and packaged in the order with the maximum data compression ratio, and then compressed.
Step S102, receiving a static resource file compression package returned by the server based on the static resource file downloading request, and analyzing the static resource file compression package to obtain a plurality of static resource files.
When the server returns the static resource file compressed packet to the mobile terminal, the mobile terminal receives the static resource file compressed packet returned by the server based on the static resource file downloading request, analyzes the static resource file compressed packet to obtain the static resource file, specifically decompresses the static resource file compressed packet to obtain the static resource file packet, extracts a plurality of static resource files in the static resource file packet and stores the static resource files, and finally calls the stored static resource files and displays the static resource files on a first page of the program application when the program application is started.
In the specific implementation, when the program application is started, whether a static resource file is cached in a preset storage area is firstly verified, if the static resource file is not cached in the preset storage area, a static resource file downloading request is sent to a server, if the static resource file is cached in the preset storage area, whether the cached static resource file is the latest static resource file is further verified, if the cached static resource file is the latest static resource file, the cached static resource file is obtained from the preset storage area, a plurality of static resource files are displayed on a home page of the program application, and the starting speed of the program application is further improved by caching the static resource file.
In this embodiment, the present invention establishes the static resource file index table based on all the static resource files required for starting the program application, reduces the parsing time of the server, and in addition, packages all the static resource files, and changes multiple downloads into one download, thereby removing unnecessary connection time, and at the same time, compresses the packaged static resource files, thereby reducing the data transmission amount.
Further, referring to fig. 3, a second embodiment of the static resource file downloading method of the present invention is proposed based on the first embodiment, and the difference from the foregoing embodiment is that, before the step S101, the method further includes:
step S103, when the program application is started, judging whether a static resource file is cached in a preset storage area;
step S104, if the static resource file is cached in the preset storage area, the cached static resource file is obtained from the preset storage area;
if the static resource file is not cached in the preset storage area, executing the step S101, namely sending a static resource file downloading request to the server;
after step S102, the method further includes:
step S105, caching the plurality of static resource files in the preset storage area.
It should be noted that, based on the foregoing embodiments, the present invention provides a specific way to increase the starting speed of the program application by caching the static resource file, which is only described below, and other embodiments can be referred to.
When detecting the program application starting, the mobile terminal firstly judges whether a preset storage area caches a static resource file or not, if the static resource file is cached in the preset storage area, the cached static resource file is acquired from the preset storage area, and when the program application is started, the cached static resource file is displayed, if the static resource file is not cached in the preset storage area, the static resource file needs to be downloaded, therefore, a static resource file downloading request is sent to the server, and a static resource file compression package returned by the server based on the static resource file downloading request is received, then, the static resource file compression package is analyzed to obtain a plurality of static resource files, and the plurality of static resource files are cached to a preset storage area, so that the static resource file can be directly acquired from the preset storage area when the program application is started next time.
In this embodiment, the static resource file is cached, so that the static resource file can be directly acquired from the preset storage area when the program application is started next time, and the starting speed of the program application is further increased.
Further, a third embodiment of the static resource file downloading method of the present invention is proposed based on the second embodiment, and the difference from the foregoing embodiment is that, before the step S104, the method further includes:
if the static resource file is cached in the preset storage area, calling an update verification interface to obtain a time stamp of a static resource file index table in the server;
judging whether the static resource file index table in the server is updated or not according to the timestamp
If the index table of the static resource file in the server is updated, executing the step of sending a static resource file downloading request to the server;
and if the static resource file index table in the server is not updated, executing the step of acquiring the cached static resource file from the preset storage area.
It should be noted that, based on the foregoing embodiments, the present invention provides a specific way to increase the starting speed of the program application by caching the static resource file, which is only described below, and other embodiments can be referred to.
When the mobile terminal detects the program application starting, firstly judging whether a static resource file is cached in a preset storage area or not, if so, further verifying whether the cached static resource file is the latest static resource file, specifically, firstly calling an update verification interface to obtain a time stamp of a static resource file index table in the server, then judging whether the static resource file index table in the server is updated or not according to the time stamp, if so, indicating that the static resource file cached in the preset storage area is the non-updated static resource file, so that the static resource file needs to be downloaded again, sending a static resource file downloading request to the server, and receiving a static resource file compression package returned by the server based on the static resource file downloading request, then analyzing the static resource file compression package to obtain a static resource file, and replacing the static resource file cached in a preset storage area based on the static resource file; if the static resource file index table in the server is not updated, the static resource file cached in the preset storage area is the latest static resource file, the cached static resource file is acquired from the preset storage area, and a plurality of static resource files are displayed on a home page of the program application.
In this embodiment, the static resource file is cached, so that the downloading frequency of the static resource file is reduced, the power consumption of the mobile terminal can be reduced to a certain extent, and the starting speed of the program application is further increased.
Further, referring to fig. 4, a fourth embodiment of the static resource file downloading method of the present invention is proposed based on the first, second, or third embodiment, and is different from the foregoing embodiments in that the static resource file downloading method further includes:
step S106, calling an updating verification interface at preset time intervals to obtain a time stamp of the static resource file index table in the server, and judging whether the static resource file index table in the server is updated or not according to the time stamp;
step S107, when the index table of the static resource file in the server is updated, sending a request for downloading the static resource file to the server, and receiving a static resource file compression packet returned by the server based on the request for downloading the static resource file;
step S108, analyzing the static resource file compression package to obtain the latest static resource file, and replacing the static resource file cached in the preset storage area with the latest static resource file.
It should be noted that, the present invention provides a specific updating method of a cached static resource file based on the foregoing embodiment, and only this will be described below, and other embodiments can be referred to.
The mobile terminal calls an update verification interface at intervals of preset time to obtain a time stamp of a static resource file index table in the server, judges whether the static resource file index table in the server is updated or not according to the time stamp, sends a static resource file downloading request to the server if the static resource file index table in the server is updated, receives a static resource file compression packet returned by the server based on the static resource file downloading request, analyzes the static resource file compression packet to obtain a latest static resource file, and replaces the static resource file cached in a preset storage area with the latest static resource file.
In this embodiment, the static resource file cached in the preset storage area is updated at preset time intervals, so that the static resource file does not need to be downloaded from the server when the program application is started, and the starting speed of the program application is greatly increased.
Further, a fifth embodiment of the static resource file downloading method of the present invention is proposed based on the fourth embodiment, and the difference from the foregoing embodiment is that, before the step S107, the method further includes:
when the static resource file index table in the server is updated, detecting whether the current network environment is a wireless network environment;
when detecting that the current network environment is a wireless network environment, executing step S107, namely sending a static resource file downloading request to a server, and receiving a static resource file compression packet returned by the server based on the static resource file downloading request.
It should be noted that, based on the foregoing embodiments, the present invention provides a specific transmission method of a static resource file compression package, which is only described below, and other embodiments can be referred to.
The mobile terminal detects whether the current network environment is a wireless network environment by judging whether the static resource file index table in the server is updated, sends a static resource file downloading request to the server when the current network environment is detected to be the wireless network environment, receives a static resource file compression packet returned by the server based on the static resource file downloading request, analyzes the static resource file compression packet to obtain a latest static resource file, and updates the static resource file cached in a preset storage area into the latest static resource file.
In this embodiment, when the current network environment is a wireless network environment, the present invention updates the static resource file cached in the preset storage area, so as to save the data traffic of the user.
Further, referring to fig. 5, a sixth embodiment of the static resource file downloading method of the present invention is proposed based on the first, second, third, fourth or fifth embodiment, and the difference from the foregoing embodiment is that before the step S101, the method further includes:
step S109, when the program application is started, judging whether the remaining available memory of the system is larger than the memory required by running the program application;
if the remaining available memory of the system is larger than the memory required for running the program application, executing step S101, namely sending a static resource file downloading request to the server;
in step S110, if the remaining available memory of the system is less than or equal to the memory required for running the program application, the running program application is cleared to release the system memory.
It should be noted that the present invention provides a specific releasing manner of the system memory based on the foregoing embodiments, and only this will be described below, and other embodiments can be referred to.
The method comprises the steps that when a program application is started, the mobile terminal obtains the residual available memory of the mobile terminal, judges whether the residual available memory of the system is larger than the memory required by running the program application or not, if the residual available memory of the system is larger than the memory required by running the program application or not, sends a static resource file downloading request to a server, receives a static resource file compression packet returned by the server based on the static resource file downloading request, analyzes the static resource file compression packet to obtain a latest static resource file, and updates the static resource file cached in a preset storage area into the latest static resource file; and if the residual available memory of the system is less than or equal to the memory required by the program application, cleaning the running program application to release the system memory.
Specifically, referring to fig. 6, fig. 6 is a detailed flowchart of the step S110 in fig. 5, where the step S110 includes:
step 1101, determining a cleaning sequence of each running program application according to the memory occupation value and the use frequency of each running program application;
step S1102, sequentially cleaning the corresponding running program applications according to the cleaning sequence to release the system memory until the remaining available memory of the system is larger than the memory required for running the program applications.
If the remaining available memory of the system is less than or equal to the memory required by running the program application, the mobile terminal determines the cleaning sequence of each running program application according to the memory occupation value and the use frequency of each running program application, and sequentially cleans the corresponding running program applications according to the cleaning sequence to release the system memory until the remaining available memory of the system is greater than the memory required by running the program application, specifically, the cleaning score of each running program application is calculated according to the memory occupation value and the use frequency of each running program application, namely the respective weight coefficients of the memory occupation value and the use frequency are obtained, then the cleaning score of each running program application is calculated according to the memory occupation value and the corresponding weight coefficient of each running program application and the use frequency and the weight coefficient of each running program application, and then the cleaning sequence of each running program application is determined according to the cleaning score of each running program application, it should be noted that the weighting factor can be set by those skilled in the art according to practical situations, and is not particularly limited in this embodiment.
In this embodiment, when the program application is started and the remaining available memory of the system is insufficient, the running program application can be cleared to release the system memory, so that the started program application can be ensured to run normally.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a static resource file downloading program is stored on the computer-readable storage medium, and when executed by a processor, the static resource file downloading program implements the following steps:
when the program application is started, a static resource file downloading request is sent to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, the plurality of static resource files are packaged and compressed to obtain a static resource file compression package, and the static resource file compression package is returned to the mobile terminal.
And receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
when the program application is started, judging whether a static resource file is cached in a preset storage area;
if the static resource file is cached in the preset storage area, the cached static resource file is obtained from the preset storage area;
if the static resource file is not cached in the preset storage area, the step of sending a static resource file downloading request to the server is executed;
after the step of analyzing the static resource file compression package to obtain the plurality of static resource files, the method further comprises the following steps:
and caching the static resource files to the preset storage area.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
if the static resource file is cached in the preset storage area, calling an update verification interface to obtain a time stamp of a static resource file index table in the server;
judging whether the static resource file index table in the server is updated or not according to the timestamp
If the index table of the static resource file in the server is updated, executing the step of sending a static resource file downloading request to the server;
and if the static resource file index table in the server is not updated, executing the step of acquiring the cached static resource file from the preset storage area.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
calling an updating verification interface at intervals of preset time to obtain a timestamp of a static resource file index table in the server, and judging whether the static resource file index table in the server is updated or not according to the timestamp;
when the static resource file index table in the server is updated, sending a static resource file downloading request to the server, and receiving a static resource file compression packet returned by the server based on the static resource file downloading request;
and analyzing the static resource file compression package to obtain the latest static resource file, and replacing the static resource file cached in a preset storage area with the latest static resource file.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
when the static resource file index table in the server is updated, detecting whether the current network environment is a wireless network environment;
and when the current network environment is detected to be the wireless network environment, executing the steps of sending a static resource file downloading request to a server and receiving a static resource file compression package returned by the server based on the static resource file downloading request.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
when the program application is started, judging whether the residual available memory of the system is larger than the memory required by running the program application;
if the residual available memory of the system is larger than the memory required for running the program application, executing the step of sending a static resource file downloading request to the server;
and if the residual available memory of the system is less than or equal to the memory required by the running program application, cleaning the running program application to release the system memory.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
determining a cleaning sequence of each running program application according to the memory occupation value and the use frequency of each running program application;
and sequentially cleaning the corresponding running program applications according to the cleaning sequence to release the system memory until the remaining available memory of the system is larger than the memory required by running the program applications.
Further, when executed by the processor, the static resource file downloading program further implements the following steps:
calculating a cleaning score of each running program application according to the memory occupation value and the use frequency of each running program application;
and determining the cleaning sequence of each running program application according to the cleaning score of each running program application.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the specific embodiments of the above static resource file downloading method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A method for downloading a static resource file is characterized by comprising the following steps:
when a program application is started, sending a static resource file downloading request to a server, so that when the server obtains a plurality of corresponding static resource files based on a plurality of index numbers in the static resource file downloading request, packaging and compressing the plurality of static resource files to obtain a static resource file compression package, and returning the static resource file compression package to a mobile terminal;
receiving a static resource file compression packet returned by the server based on the static resource file downloading request, and analyzing the static resource file compression packet to obtain a plurality of static resource files;
the step of packing and compressing the plurality of static resource files to obtain the static resource file compression package comprises the following steps: when the plurality of static resource files are packaged, calculating and comparing the data compression ratio of the static resource file package of each sequential combination, obtaining the static resource file package of the sequential combination with the largest data compression ratio, packaging the plurality of static resource files based on the sequential combination with the largest data compression ratio, and compressing to obtain a static resource file compression package;
before the step of sending a static resource file downloading request to the server, the method further comprises:
when the program application is started, judging whether a static resource file is cached in a preset storage area;
if the static resource file is cached in the preset storage area, the cached static resource file is obtained from the preset storage area;
if the static resource file is not cached in the preset storage area, the step of sending a static resource file downloading request to the server is executed;
after the step of analyzing the static resource file compression package to obtain the plurality of static resource files, the method further comprises the following steps:
and caching the static resource files to the preset storage area.
2. The method for downloading the static resource file according to claim 1, wherein the step of obtaining the cached static resource file from the preset storage area further comprises:
if the static resource file is cached in the preset storage area, calling an update verification interface to obtain a time stamp of a static resource file index table in the server;
judging whether the static resource file index table in the server is updated or not according to the timestamp
If the index table of the static resource file in the server is updated, executing the step of sending a static resource file downloading request to the server;
and if the static resource file index table in the server is not updated, executing the step of acquiring the cached static resource file from the preset storage area.
3. The static resource file downloading method of claim 1, wherein the static resource file downloading method further comprises:
calling an updating verification interface at intervals of preset time to obtain a timestamp of a static resource file index table in the server, and judging whether the static resource file index table in the server is updated or not according to the timestamp;
when the static resource file index table in the server is updated, sending a static resource file downloading request to the server, and receiving a static resource file compression packet returned by the server based on the static resource file downloading request;
and analyzing the static resource file compression package to obtain the latest static resource file, and replacing the static resource file cached in a preset storage area with the latest static resource file.
4. The method for downloading the static resource file according to claim 3, wherein before the step of sending the request for downloading the static resource file to the server and receiving the compressed package of the static resource file returned by the server based on the request for downloading the static resource file, the method further comprises:
when the static resource file index table in the server is updated, detecting whether the current network environment is a wireless network environment;
and when the current network environment is detected to be the wireless network environment, executing the steps of sending a static resource file downloading request to a server and receiving a static resource file compression package returned by the server based on the static resource file downloading request.
5. The static resource file downloading method of any of claims 1-4, wherein prior to the step of sending a static resource file download request to the server, further comprising:
when the program application is started, judging whether the residual available memory of the system is larger than the memory required by running the program application;
if the residual available memory of the system is larger than the memory required for running the program application, executing the step of sending a static resource file downloading request to the server;
and if the residual available memory of the system is less than or equal to the memory required by the running program application, cleaning the running program application to release the system memory.
6. The method of claim 5, wherein the step of cleaning up running program applications to release system memory comprises:
determining a cleaning sequence of each running program application according to the memory occupation value and the use frequency of each running program application;
and sequentially cleaning the corresponding running program applications according to the cleaning sequence to release the system memory until the remaining available memory of the system is larger than the memory required by running the program applications.
7. The method for downloading the static resource file according to claim 6, wherein the step of determining the cleaning sequence of each running program application according to the memory footprint and the usage frequency of each running program application comprises:
calculating a cleaning score of each running program application according to the memory occupation value and the use frequency of each running program application;
and determining the cleaning sequence of each running program application according to the cleaning score of each running program application.
8. A mobile terminal, characterized in that the mobile terminal comprises: memory, a processor and a static resource file downloading program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, having stored thereon a static resource file downloading program, which when executed by a processor, performs the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710927731.4A CN107734022B (en) | 2017-09-30 | 2017-09-30 | Static resource file downloading method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710927731.4A CN107734022B (en) | 2017-09-30 | 2017-09-30 | Static resource file downloading method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107734022A CN107734022A (en) | 2018-02-23 |
CN107734022B true CN107734022B (en) | 2021-08-10 |
Family
ID=61208551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710927731.4A Active CN107734022B (en) | 2017-09-30 | 2017-09-30 | Static resource file downloading method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734022B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595188A (en) * | 2018-03-30 | 2018-09-28 | 北京五八信息技术有限公司 | A kind of acquisition methods of application file, device, equipment and storage medium |
CN109587524B (en) * | 2018-10-31 | 2021-08-03 | 视联动力信息技术股份有限公司 | Method and device for synchronizing video networking resources to Internet terminal |
CN109635217A (en) * | 2018-12-14 | 2019-04-16 | 平安普惠企业管理有限公司 | H5 page loading method, device, computer equipment and the storage medium of APP |
CN112565472B (en) * | 2019-09-10 | 2024-05-17 | 北京京东尚科信息技术有限公司 | Static resource processing method and device |
CN113127072B (en) * | 2020-01-14 | 2023-08-08 | 荣耀终端有限公司 | Method for controlling display of electronic equipment and display control device |
CN111309391A (en) * | 2020-01-20 | 2020-06-19 | 北京无限光场科技有限公司 | Application program starting method, device, equipment and medium |
CN111367673A (en) * | 2020-03-05 | 2020-07-03 | 山东中创软件商用中间件股份有限公司 | Static resource acquisition method, device and related equipment |
CN113286006B (en) * | 2021-06-09 | 2023-05-26 | 维沃移动通信有限公司 | File loading method and device |
CN113568752A (en) * | 2021-07-29 | 2021-10-29 | 上海浦东发展银行股份有限公司 | Static resource loading method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002251343A (en) * | 2001-02-23 | 2002-09-06 | Nec Nexsolutions Ltd | System, method and program for collectively downloading plural files |
CN103020155A (en) * | 2012-11-23 | 2013-04-03 | 中国电信股份有限公司云计算分公司 | Web front end resource request processing method and device |
CN105100084A (en) * | 2015-07-07 | 2015-11-25 | 中国科学院计算技术研究所 | Method and system for preventing cross-site request forgery attack |
US9201883B1 (en) * | 2012-10-08 | 2015-12-01 | Amazon Technologies, Inc. | Remote file archiving using package files |
CN105446975A (en) * | 2014-06-23 | 2016-03-30 | 广州爱九游信息技术有限公司 | File packing method and device |
CN105893153A (en) * | 2016-03-31 | 2016-08-24 | 北京百纳威尔无线通信设备有限公司 | Memory cleaning method and device for mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478370B (en) * | 2009-01-20 | 2012-05-23 | 中兴通讯股份有限公司 | File compression method and apparatus based on file system |
CN103873438A (en) * | 2012-12-12 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Compression packet uploading and duplication-removing system and method |
CN104601683B (en) * | 2014-12-31 | 2018-01-23 | 广东欧珀移动通信有限公司 | A kind of file download management method and mobile terminal and communication system |
-
2017
- 2017-09-30 CN CN201710927731.4A patent/CN107734022B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002251343A (en) * | 2001-02-23 | 2002-09-06 | Nec Nexsolutions Ltd | System, method and program for collectively downloading plural files |
US9201883B1 (en) * | 2012-10-08 | 2015-12-01 | Amazon Technologies, Inc. | Remote file archiving using package files |
CN103020155A (en) * | 2012-11-23 | 2013-04-03 | 中国电信股份有限公司云计算分公司 | Web front end resource request processing method and device |
CN105446975A (en) * | 2014-06-23 | 2016-03-30 | 广州爱九游信息技术有限公司 | File packing method and device |
CN105100084A (en) * | 2015-07-07 | 2015-11-25 | 中国科学院计算技术研究所 | Method and system for preventing cross-site request forgery attack |
CN105893153A (en) * | 2016-03-31 | 2016-08-24 | 北京百纳威尔无线通信设备有限公司 | Memory cleaning method and device for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107734022A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107734022B (en) | Static resource file downloading method, mobile terminal and computer readable storage medium | |
CN110147237B (en) | A method and device for removing redundant resources | |
CN106296255B (en) | Page information display method and device | |
US10956653B2 (en) | Method and apparatus for displaying page and a computer storage medium | |
US9742900B2 (en) | Method, terminal device and storage medium for displaying information | |
CN110020293B (en) | Multimedia data display method, device and storage medium | |
CN108600516B (en) | Data acquisition method, mobile terminal and computer readable storage medium | |
CN107734023B (en) | Static resource file downloading method, mobile terminal and computer readable storage medium | |
CN106203228A (en) | Two-dimensional code information transmission method, device and equipment | |
CN103246847B (en) | A kind of method and apparatus of macrovirus killing | |
WO2015067142A1 (en) | Webpage display method and device | |
CN109002547B (en) | Log file storage method, mobile terminal and computer readable storage medium | |
US10298590B2 (en) | Application-based service providing method, apparatus, and system | |
CN108491225B (en) | Update package generation method and mobile terminal | |
CN110532231B (en) | File query method, file query device and terminal equipment | |
CN109144596B (en) | Quick starting method, device, terminal, server and system | |
CN106682189B (en) | File name display method and device | |
CN106095423B (en) | Method, terminal and server for providing browsing service | |
CN107704287B (en) | Installation-free method for program application, mobile terminal and computer-readable storage medium | |
CN106649595B (en) | Object pool-based webpage starting acceleration method and device and terminal | |
CN109889568B (en) | Data export method, server and system | |
CN111966373A (en) | APN resetting method, terminal equipment and storage medium | |
CN103457832A (en) | Information management method, device and terminal | |
CN108563712B (en) | Webpage picture viewing method and device and storage equipment | |
CN107346347B (en) | Webpage table display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |