Static resource processing method, apparatus, device, and storage medium
By generating and storing message header information and associating it with static resources on the local server, the problem of limited terminal cache space is solved, achieving efficient and seamless resource loading, and improving resource loading efficiency and speed.
Patent Information
- Application Number
- CN202111667806.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In existing technologies, the terminal cache space is limited, which leads to frequent resource requests to the cloud server, resulting in low resource loading efficiency and high requirements for the network environment. It is impossible to achieve unimpeded loading in the case of weak or faulty external network.
By generating and storing the association between message header information and static resources on the local server, static resources can be read by directly matching the message header information, avoiding traversing the database, improving resource loading speed and efficiency, and enabling unimpeded loading even in situations with weak or faulty external networks.
It improves the response speed and efficiency of resource loading requests, ensuring that static resources can still be loaded without obstacles even when the external network is weak or malfunctioning, and reduces system complexity and resource consumption.
Smart Images

Figure CN116418825B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet, and particularly relates to a static resource processing method and device, equipment and a storage medium. BACKGROUND
[0002] With great progress of network technology and continuous enrichment of display forms on the network, more and more static resources are used in web pages, and the memory occupation of static resources in the page is also increasing, for example, more high-definition pictures and short videos are used as first-screen static resources, and so on, which puts forward higher requirements on the loading speed of web pages. At present, after the terminal obtains the static resource from the cloud server, it is usually stored in the terminal cache to improve the resource loading speed, but the terminal cache space is limited, and due to the inherent setting of the web client, the static resource in the terminal cache is usually set to a very short expiration time, so it is necessary to frequently send a resource request to the cloud server to determine whether the terminal cache is expired, which has high requirements on the network environment and is only suitable for the Internet environment. Moreover, after each resource request is sent, the cloud server needs to traverse the corresponding static resource data according to the resource request, and the resource request response efficiency and resource loading efficiency are low. Therefore, an improved static resource processing scheme needs to be provided to solve the problems in the related art. SUMMARY
[0003] The present application provides a static resource processing method, device and storage medium, which can effectively improve the response speed of resource loading request and resource loading efficiency.
[0004] In one aspect, the present application provides a static resource processing method, which comprises:
[0005] In response to the resource loading request sent by the terminal and carrying the target static resource information, searching for the message header information corresponding to the target static resource information from the information cache area;
[0006] In the case where the corresponding message header information is not found, sending the resource loading request to the cloud server;
[0007] Generating target message header information according to the target static resource information and the resource response information;
[0008] Storing the target message header information into the information cache area and storing the target static resource into a static resource database, wherein the target message header information and the target static resource are stored in association;
[0009] Sending the target static resource to the terminal.
[0010] Another aspect provides a static resource processing device, which comprises:
[0011] The information searching module is configured to search for message header information corresponding to the target static resource information from the information cache area in response to the resource loading request sent by the terminal and carrying the target static resource information.
[0012] The response information receiving module is configured to receive resource response information sent by the cloud server in response to the resource loading request, the resource response information carrying a target static resource corresponding to the target static resource information.
[0013] The message header information generating module is configured to generate target message header information according to the target static resource information and the resource response information.
[0014] The resource storing module is configured to store the target message header information into the information cache area and store the target static resource into a static resource database, wherein the target message header information and the target static resource are stored in association.
[0015] The resource feedback module is configured to send the target static resource to the terminal.
[0016] In another aspect, a computer device is provided, the device comprising a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the static resource processing method as described above.
[0017] In another aspect, a computer readable storage medium is provided, the storage medium storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by a processor to implement the static resource processing method as described above.
[0018] In another aspect, a server is provided, the server comprising a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the static resource processing method as described above.
[0019] In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions, the computer instructions being executed by a processor to implement the static resource processing method as described above.
[0020] The static resource processing method, device, equipment, storage medium, server and computer program product provided by the present application have the following technical effects:
[0021] The application finds the message header information corresponding to the target static resource information from the information cache area in response to the resource loading request carrying the target static resource information sent by the terminal; in the case that the corresponding message header information is not found, the resource loading request is sent to the cloud server; the target message header information is generated according to the target static resource information and the resource response information; the target message header information is stored in the information cache area, and the target static resource is stored in the static resource database, wherein the target message header information and the target static resource are stored in association; the target static resource is sent to the terminal. By generating the message header information, storing the message header information in the information cache area, and storing the corresponding static resource in association, the static resource can be read directly by matching the message header information, without traversing the stored static resource in the database, so that the response speed of the resource loading request is improved, and the resource loading efficiency is improved. In addition, the static resource is backed up and stored in association by the local server, so that the page static resource can be loaded without obstacles in the case that the external network is weak or fails. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art and the advantages thereof, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor based on these drawings.
[0023] Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
[0024] Figure 2 is a flowchart of a static resource processing method provided by an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of a static resource processing system provided by an embodiment of the present application;
[0026] Figure 4 is a flowchart of another static resource processing method provided by an embodiment of the present application;
[0027] Figure 5 is a flowchart of another static resource processing method provided by an embodiment of the present application;
[0028] Figure 6 is a flowchart of another static resource processing method provided by an embodiment of the present application;
[0029] Figure 7 is a flowchart of a static resource processing method provided by an embodiment of the present application;
[0030] Figure 8 is a framework schematic diagram of a static resource processing apparatus provided by an embodiment of the present application;
[0031] Figure 9 is a hardware structure block diagram of an electronic device of a static resource processing method provided by an embodiment of the present application;
[0032] Figure 10 is a structure schematic diagram of a blockchain system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0033] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0034] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or sub-modules does not necessarily have to include all the steps or sub-modules listed clearly, but can include other steps or sub-modules not listed clearly or inherent to these processes, methods, products or devices.
[0035] Before the embodiments of the present application are further described in detail, the terms and terms involved in the embodiments of the present application are explained, and the terms and terms involved in the embodiments of the present application are applicable to the following explanations.
[0036] HTTP (Hyper Text Transfer Protocol, Hyper Text Transfer Protocol): a request-response protocol, which usually runs on TCP. It specifies what messages the client can send to the server and what response it gets.
[0037] Header: header information of HTTP protocol.
[0038] Static: static file service of HTTP server
[0039] Redis: Redis (Remote Dictionary Server), a key-value storage system.
[0040] COS: Cloud Object Storage.
[0041] CDN: Content Delivery Network, a content distribution network. CDN is an intelligent virtual network built on the existing network infrastructure, relying on edge servers deployed in various places, through the load balancing, content distribution, scheduling and other function modules of the central platform, so that users can access the required content nearby, reduce network congestion, and improve user access response speed and hit rate.
[0042] Mem: local memory.
[0043] Memcache: a distributed caching system.
[0044] See Figure 1 , Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application, as Figure 1 shown, the application environment can include at least terminal 01, local server 02 and cloud server 03. In actual application, terminal 01, local server 02 and cloud server 03 can be directly or indirectly connected through wired or wireless communication mode, which is not limited in the present application.
[0045] In an embodiment of the present application, the servers involved in the local server 02 and the cloud server 03 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platform.
[0046] Specifically, the cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing. It distributes computing tasks on a resource pool formed by a large number of computers, so that various application systems can obtain computing power, storage space, and information services as needed. The network that provides resources is called "cloud". Among them, the artificial intelligence cloud service is also commonly referred to as AIaaS (AI as a Service). This is a mainstream service mode of the current artificial intelligence platform. Specifically, the AIaaS platform will split several common AI services and provide independent or packaged services in the cloud. This service mode is similar to opening an AI theme mall: all developers can access one or more artificial intelligence services provided by the platform through the API interface, and some experienced developers can also use the AI framework and AI infrastructure provided by the platform to deploy and maintain their own cloud artificial intelligence services.
[0047] Specifically, the server involved above can include an entity device, can specifically include a network communication submodule, a processor, a memory, and the like, and can also include software running in the entity device, and can specifically include an application and the like.
[0048] In the embodiments of the present application, the terminal 01 can include an entity device of the type of a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, an augmented reality (AR) / virtual reality (VR) device, a smart voice interaction device, a smart home appliance, a smart wearable device, a vehicle-mounted terminal device, and the like, and can also include software running in the entity device, such as an application and the like.
[0049] In the embodiments of the present application, the terminal 01 can be configured to send a resource loading request carrying target static resource information to the local server 02, the local server 02 can be configured to provide a static resource processing service, including finding message header information corresponding to the target static resource information in the information cache area in response to the resource loading request, and then performing corresponding static resource processing operations according to the finding result; and provide storage services and update services of static resources. The cloud server 03 can be configured to provide storage services of static resources, in the case of receiving the resource loading request forwarded by the local server 02, send the corresponding target static resource to the local server 02, and in the case of receiving the resource update request sent by the local server 02, send the corresponding updated static resource to the local server 02.
[0050] In addition, it can be understood that Figure 1The shown is only an application environment of a static resource processing method, which can include more or less nodes, and the present application does not limit here.
[0051] The application environment, or the server of the local server 02 or the cloud server 03 in the application environment, and the terminal 01 involved in the embodiments of the present application can be a distributed system formed by a client, a plurality of nodes (any form of computing device in an access network, such as a server, a user terminal) and network communication. The distributed system can be a blockchain system, which can provide the static resource processing service and the static data storage service described above.
[0052] Referring to Figure 10 , Figure 10 is an optional structural schematic diagram of a distributed system 100 provided by the embodiments of the present application applied to a blockchain system, formed by a plurality of nodes (any form of computing device in an access network, such as a server, a user terminal) and a client, a point-to-point (P2P, Peer To Peer) network formed between the nodes, and the P2P protocol is an application layer protocol running on a transmission control protocol (TCP, Transmission Control Protocol) protocol. In the distributed system, any machine such as a server, a terminal can join to become a node, and the node includes a hardware layer, an intermediate layer, an operating system layer and an application layer.
[0053] The blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm, and is essentially a decentralized database, that is, a series of data blocks associated using a cryptography method, each data block containing information of a batch of network transactions, for verifying the validity (anti-fake) of the information and generating the next block. The blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. The blockchain underlying platform can include user management, basic services, smart contracts, and operation detection processing modules. The user management module is responsible for identity information management of all blockchain participants, including maintaining private key generation (account management), key management, and correspondence between real identities and blockchain addresses (permission management), and in the case of authorization, detecting and auditing the transaction of certain real identities, providing risk control rule configuration (risk audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and record to the storage after completing the consensus for the valid request, for a new business request, the basic service first performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts the business information through a consensus algorithm (consensus management), and after encryption, the complete and consistent information is transmitted to the shared ledger (network communication) and recorded and stored; the smart contract module is responsible for contract registration and issuance, contract triggering and contract execution, and developers can define contract logic through a certain programming language, publish to the blockchain (contract registration), and trigger execution according to the logic of the contract terms, complete the contract logic, and also provide contract upgrade and cancellation functions; the operation detection module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process, and real-time state visualization output in the product operation, such as alarm, network detection, node device health state detection, etc. The platform product service layer provides basic capabilities and implementation frameworks of typical applications, and developers can stack business characteristics based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on the blockchain scheme for business participants to use.
[0054] The local service end of the present application is introduced based on the above application environment, please refer to Figure 3 , Figure 3An architecture schematic diagram of a local service end provided by an embodiment of the present application is shown. The local service end 02 is in communication connection with the terminal 01 through a local area network, and the local service end 02 and the cloud service end 03 can be in communication connection through a wide area network. The terminal 01 runs a web client, and the web client sends a resource loading request to the local service end 02 based on page loading requirements; the local service end 02 is provided with an information cache area and a static resource database, the information cache area is used to store message header information of static resources, and the static resource database is used to backup and store static resources sent by the cloud service end and provide update services of static resources. The cloud service end 03 stores static resources required by terminal page loading, and provides updated static resources to the local service end. In some cases, the information cache area can be constructed based on local Mem cache or Memcache, the static resource database can be constructed based on Redis, and the cloud service end can be constructed based on COS.
[0055] A static resource processing method provided by an embodiment of the present application is introduced below based on the above application environment and system, and is applied to a local service end. Embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, and auxiliary driving. Please refer to Figure 2 , Figure 2 is a flow schematic diagram of a static resource processing method provided by an embodiment of the present application. The present specification provides method operation steps as embodiments or flowcharts, but more or fewer operation steps can be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one of the many execution orders, and does not represent the only execution order. In actual system or server product execution, the method order shown in the embodiments or the drawings can be executed in sequence or in parallel (for example, in a parallel processor or multi-thread processing environment). Specifically as shown in Figure 2 , the method can include the following steps.
[0056] S201: In response to a resource loading request sent by a terminal and carrying target static resource information, searching for message header information corresponding to the target static resource information from an information cache area;
[0057] In an embodiment of the present application, static resources refer to static files, such as pictures, style files (css files), audio files, video files, and java script files in web, etc. Static resource information can be carried in the request header of a resource loading request, and target static resource information can include target resource identifiers, such as static resource names or static resource IDs, etc. Specifically, the resource loading request can be an HTTP request.
[0058] In the embodiments of the present application, the terminal can run an application such as a web client that has a page loading requirement. The terminal can receive a page display triggering operation submitted by a client visitor to generate a corresponding page loading request. Then, after determining the static resources required by the page, the terminal generates a resource loading request based on the corresponding static resource information and sends the request to the local server. The local server analyzes and processes the received resource loading request to obtain static resource information and other related information.
[0059] Specifically, the terminal is provided with a terminal cache for caching static resources of a page. For example, the web client has a corresponding web cache in the terminal. In the case of initial loading of a page in the terminal, the terminal cache does not store the static resources of the page, and the terminal needs to send a corresponding resource loading request to the local server to obtain the static resources and store the static resources, static resource information and other related information in the terminal cache. The other related information can include life cycle information of the static resources, such as Expires and max-age header information. When the terminal loads the page again, the terminal determines whether the cached static resources have expired according to the life cycle information. If not, the terminal directly loads the static resources. If yes, the terminal needs to send a resource loading request to the local server again to trigger the local server to perform a static resource processing procedure.
[0060] In actual applications, the local server can be in communication connection with multiple terminals through a local area network. Different terminals can send resource loading requests carrying the same static resource information to the local area network. In the initial state, the information cache area and the static resource database of the local server do not store corresponding message header information and static resources. That is, when the local server initially receives a resource loading request corresponding to a certain static resource sent by a terminal, the local server triggers a static resource downloading operation, i.e., forwards the resource loading request to a cloud server to obtain the corresponding static resource from the cloud server, stores the static resource, and feeds back to the terminal. That is, when the resource loading request corresponding to a certain static resource is initially sent to the local server, the local server does not store the static resource and the corresponding message header information. After initially obtaining the static resource, the local server generates corresponding message header information in the information cache area and stores the static resource in the static resource database.
[0061] In actual application, the message header information in the information cache area is stored in association with the static resource in the static resource database. The message header information includes the static resource information of the corresponding static resource, or the message header information is stored in association with the static resource information, such as key-value association storage, wherein the key is the static resource information and the value is the message header information. Specifically, it can also be stored in association with the static resource identifier, that is, the key is the static resource identifier. Specifically, after receiving the resource loading request, the local server performs message header information searching in the information cache area based on the target static resource information, and performs matching processing on the target static resource information and the static resource information corresponding to each message header information in the information storage area. If the corresponding message header information is not matched, it is determined that the static resource requested by the resource loading request does not exist in the static resource database, that is, the loading request of the static resource is received for the first time, and the static resource needs to be obtained from the cloud server, thereby triggering the forwarding of the resource loading request. Specifically, the format of the message header information can be the HTTP message header format.
[0062] S203: In the case where the corresponding message header information is not found, sending a resource loading request to the cloud server.
[0063] Specifically, the cloud server responds to the resource loading request, finds the target static resource corresponding to the target static resource information in the static resource stored in the cloud server, generates resource response information carrying the resource, and sends it to the local server.
[0064] S205: Receiving the resource response information carrying the target static resource corresponding to the target static resource information sent by the cloud server in response to the resource loading request.
[0065] S207: Generating target message header information according to the target static resource information and the resource response information.
[0066] In the embodiment of the application, the response header of the resource response information can include the update time information and the verification identifier of the target static resource, and the target static resource information can also include the resource type information of the target static resource. The local server analyzes the resource response information to obtain the above information after obtaining the resource response information, and then generates the target message header information including the above information.
[0067] S209: Storing the target message header information into the information cache area and storing the target static resource into the static resource database, wherein the target message header information is stored in association with the target static resource.
[0068] In the embodiments of the present application, the association relationship between the target message header information and the target static resource is established and stored in association, the target message header information is stored in the information cache area, and the target static resource is stored in the static resource database. In the case of receiving again the resource loading request carrying the target static resource information sent by any terminal, even if the terminal initiating the request sends the resource loading request for the first time, the local server can still directly match the corresponding message header information from the information cache area according to the target static resource information, and then determine that there is an associated target static resource, without triggering the process of downloading the target static resource from the cloud server again.
[0069] In actual application, the target message header information includes cache verification information. Correspondingly, S207 can include the following steps.
[0070] S2071: Obtain the update time information and the verification identifier of the target static resource from the response header of the resource response information.
[0071] S2072: Generate the cache verification information in the target message header information according to the update time information and the verification identifier.
[0072] In some embodiments, after the resource response information is parsed and processed, the update time information and the verification identifier of the target static resource are obtained from the response header. Specifically, the update time information represents the latest update time of the target static resource, for example, the Last-Modified information carried in the response header. The verification identifier is a unique identifier of the target static resource, and the verification identifiers of different static resources and different versions of the same static resource are different. The verification identifier can be a hash value, for example, the Etag information carried in the response header. The cache verification information is generated according to the update time information and the verification identifier.
[0073] In some embodiments, the target static resource information includes resource type information; correspondingly, storing the target message header information into the information cache area can include the following steps.
[0074] S2091: Generate the storage type information corresponding to the target message header information according to the resource type information.
[0075] S2092: Store the target message header information into the corresponding type classification in the information cache area according to the storage type information.
[0076] Specifically, the resource type information represents the data type of the target static resource, which can include but is not limited to static picture data and model files, etc. The static picture data can be, for example, jpg or png, etc. The model file can be, for example, b3dm (Batched 3D Model) or CAD (Computer Aided Design), etc. The target static resource information carried in the request header of the resource loading request can include a field of resource type information, or can be determined based on the suffix name of the static resource identifier, such as.jpg, etc.
[0077] In some embodiments, the information cache area can store the message header information of different types of static resources based on the classification of the resource type of the static resource. Correspondingly, after obtaining the resource type information of the target static resource, the corresponding storage type information is generated, which represents the type classification of the target static resource. The storage type information can be generated in the body of the target message header information, or the association relationship between the storage type information and the target message header information and / or the target static resource information can be established, such as taking the storage type information and the target static resource identifier as the key of the target message header information. In this case, the storage type information can be a suffix name or a type identifier code, etc. The message header information can be stored in the information cache area according to the storage type information, so as to store the message header information corresponding to the static resource of the same resource type in the same type classification. Specifically, the same type classification can correspond to the same cache partition, for example, the message header information of the image type is stored in the same cache partition.
[0078] Correspondingly, when the associated static resource is stored, there is no need to store the static resource again. For static resources of different resource types, such as pictures, model files or video files, etc., different storage processing methods do not need to be used. Only the association relationship between the static resource and the message header information needs to be established, so as to realize the quick access of the static resource and reduce the complexity of data processing and system. It can be understood that the data size of the message header information is much smaller than that of the static resource. When the resource loading request of the target static resource is received again, the resource type information carried in the request can be matched with the storage type information in the information cache area, and then the target static resource corresponding to the target resource identifier can be obtained from the corresponding type classification, without the need to read the data according to the data extension name in the static resource database, or the need to store the static resource according to the data extension name. The access efficiency of the static resource is significantly improved, and the resource occupation in the access process is reduced.
[0079] S211: Send the target static resource to the terminal.
[0080] In the embodiment of the present application, after obtaining the target static resource from the cloud server, the target static resource is fed back to the terminal while being stored as a backup, so that the terminal loads and displays the target static resource.
[0081] In summary, based on the above technical solution, the reading of the static resource can be directly realized by matching the message header information, without traversing the stored static resource in the database, so as to improve the response speed of the resource loading request and further improve the resource loading efficiency. In addition, the static resource is stored as a backup and associated by the local server, so that the page static resource can be loaded without obstacles in the case of weak or failure of the external network.
[0082] In the embodiment of the present application, the resource loading request also carries the resource cache verification information of the corresponding static resource in the terminal cache; please refer to Figure 4 The method can further include the following steps.
[0083] S213: In the case of finding the corresponding message header information, the current cache verification information is obtained from the corresponding message header information.
[0084] S215: In the case of matching the resource cache verification information and the current cache verification information, the terminal is fed back the resource validity information, so that the terminal loads the corresponding static resource in the terminal cache.
[0085] Specifically, the resource cache verification information is carried in the response information of the static resource fed back by the local server to the terminal, and the resource cache verification information can include the update time information and the verification identifier. It can be understood that, in the case of initial sending of the resource loading request of the static resource by the terminal, the resource loading request does not contain the resource cache verification information, and in the case of not initial sending, the resource loading request carries the resource cache verification information. Specifically, the current cache verification information is the cache verification information contained in the current message header information of the target static resource. Specifically, the resource validity information is used to indicate that the static resource corresponding to the resource loading request in the terminal cache is not expired, and can be a feedback code such as 304. After receiving the resource validity information, the terminal updates the life cycle information (such as max-age information) of the static resource in the terminal cache, so as to update the static resource as an unexpired resource.
[0086] In actual application, if the message header information matching the target static resource information exists in the information cache area, the resource loading request is not the first loading request of the local server for the static resource corresponding to the static resource, that is, the target static resource has been stored in the static resource database. It should be noted that the local server is in communication connection with a plurality of terminals, and different terminals can run the same client, such as the same web client, that is, different terminals will send the same static resource loading request to the local server. The local server of the present application stores the static resource and the generated message header information in association after initially receiving the resource loading request of a static resource and downloading the static resource from the cloud server. When receiving the resource loading request of the same static resource sent by any terminal again, only the message header information is matched according to the static resource information, without being limited by the client information or the client user information, and the static resource does not need to be downloaded repeatedly, thereby avoiding the waste of storage resources and the delay of response, and realizing the efficient loading of the static resource.
[0087] In some cases, if the message header information is matched, the terminal is directly fed back with the resource validity information, so that the terminal determines that the corresponding static resource in the terminal cache is not expired and is an effective resource, and loads the same. In this way, the static resource in the local server is a long-acting resource by default, without the need to change the settings or source code of the web client, only by modifying the data semantics of the local server, the long-acting of the static resource in the terminal cache is realized, the repeated downloading of the static resource is avoided, the resource loading process in the local area network environment is optimized, and the resource loading efficiency is significantly improved.
[0088] In some cases, the static resource of the local server may be updated, and in the case that the resource cache verification information is carried in the resource loading request, the corresponding current cache verification information is matched, which can be specifically determined whether the two are consistent, such as whether the update time information and the verification identifier of the two are consistent. If the two are matched, it is determined that the static resource in the local server is not updated, and the resource validity information is fed back.
[0089] Further, please refer to Figure 5 The method further comprises the following steps.
[0090] S217: In the case that the resource cache verification information does not match the current cache verification information, the updated static resource associated with the corresponding message header information is obtained from the static resource database.
[0091] S219: The updated static resource is sent to the terminal, so that the terminal loads the updated static resource.
[0092] Further, if the resource cache verification information does not match the current cache verification information, such as any of the update time information and the verification identifier of the two are inconsistent, it is determined that the static resource has been updated, the associated updated static resource is obtained from the static resource database based on the corresponding message information, and is fed back to the terminal. The terminal loads the updated static resource and updates the corresponding static resource in the terminal cache to the updated static resource.
[0093] In this way, it can be determined whether there is resource update directly according to the message header information, without the need of performing update judgment after obtaining the static resource, thereby improving the resource obtaining efficiency.
[0094] Based on the above part or all of the embodiments, in the embodiments of the present application, please refer to Figure 6 The method can further include the following static resource updating step.
[0095] S301: Determine the message header information of the static resource to be updated.
[0096] Specifically, the updating of the static resource can be triggered by the updating operation submitted by the client visitor, such as the updating operation submitted by the client visitor through the resource updating control on the terminal interface; or the updating operation submitted by the maintenance personnel through the management client to trigger the updating of the static resource; or the updating of the static resource triggered by the detection tool periodically based on the update time information of the static resource, and the update time information of the static resource is also included in the message header information; before S301, the method can further include the following steps.
[0097] S401: Periodically obtain the update time information of each static resource in the static resource database from the message header information in the information cache area.
[0098] S403: Determine the message header information corresponding to the update time information satisfying the preset updating condition as the message header information of the static resource to be updated.
[0099] Specifically, the detection tool periodically obtains the update time information of each static resource, determines the storage duration of each static resource according to the update time information and the current time information, and correspondingly, the preset updating condition can be that the storage duration of the static resource is greater than or equal to the preset duration (such as 1 day). After determining the update time information satisfying the preset updating condition, the message header information belonging to the update time information is determined as the message header information of the static resource to be updated.
[0100] S303: Delete the associated static resource according to the message header information of the static resource to be updated, and generate a corresponding resource updating request.
[0101] Specifically, based on the determined packet header information, the associated static resource to be updated is found from the static resource database, and the static resource to be updated is deleted, and a resource update request carrying the corresponding static resource information is generated.
[0102] S305: sending the resource update request to the cloud server, so that the cloud server sends the corresponding updated static resource and updated cache verification information in response to the resource update request.
[0103] S307: updating the packet header information of the static resource to be updated based on the updated cache verification information to obtain updated packet header information.
[0104] S309: establishing an association between the updated static resource and the updated packet header information.
[0105] S311: storing the updated static resource in the static resource database.
[0106] Specifically, after the cloud server receives the resource update request, the static resource data corresponding to the static resource information carried by the resource update request is determined as the updated static resource, the cache verification information of the static resource is determined as the corresponding updated cache verification information, and the cloud server feeds back the updated cache verification information to the local server. After the local server receives the updated static resource and the updated cache verification information, the cache verification information in the packet header information of the static resource to be updated is updated, which is replaced by the updated cache verification information, to obtain the updated packet header information, and the updated static resource and the updated packet header information are associated and stored. The storage process is similar to the foregoing S209.
[0107] In this way, the local server is used to realize the active update of the static resource, avoiding triggering the update operation of the static resource after the terminal sends the resource update request, reducing the complexity of data flow, and improving the resource feedback efficiency.
[0108] Based on the above part or all embodiments, in some embodiments, the page required to be displayed by the terminal needs to load multiple images, and some of the images may belong to the same page module, such as the same title bar of the first screen of the page. Correspondingly, storing the target static resource into the static resource database can include the following steps.
[0109] S401: In the case where the target static resource includes multiple image data, obtaining page module attribution information and position information of the multiple image data.
[0110] S403: determining the image data belonging to the same page module from the multiple image data according to the page module attribution information.
[0111] S405: performing image merging processing on the image data belonging to the same page module based on the position information to obtain the corresponding merged image.
[0112] S407: Replace the image data belonging to the same page module by using the merged image, and obtain the replaced target static resource.
[0113] S409: Store the replaced target static resource into the static resource database.
[0114] It can be understood that the page module can be set based on actual needs, such as the search title bar of the item display page as a page module. Specifically, the page module attribution information and the position information of the image data can be carried in the resource loading request, or the local server can send an image information acquisition request to the terminal after initially acquiring the target static resource and determining that there are multiple image data in the target static resource, and the terminal feeds back to the local server in response to the image information acquisition request.
[0115] Specifically, according to the information, determine the page module to which each image data in the multiple image data belongs and its position information, determine the relative position relationship between the images belonging to the same page module based on the position information, perform merging processing on the images of the same page module based on the relative position relationship, obtain the merged image corresponding to the page module, and mark the update position information of the merged image. Further, replace the image data belonging to the page module in the target static resource, and store the replaced target static resource, the static resource information and the resource type information in association. In this way, the number of requests and transmissions of image data can be reduced, the data transmission efficiency can be effectively improved, and the resource occupation can be reduced. For example, the CSS-SPIRIT method can be used for image merging processing.
[0116] It should be noted that in the process of transmitting static resources between the local server and the terminal in the local area network scenario, the data encryption and decryption processing is not required, so as to further improve the data transmission efficiency.
[0117] The static resource processing flow of the technical scheme of the present application is introduced based on the foregoing static resource processing system. Please refer to Figure 7In the diagram, process (1) corresponds to the terminal sending a resource loading request for a static resource for the first time, and the local server receiving the resource loading request for the static resource for the first time. That is, there is no corresponding header information in the information cache, and the static resource does not exist in the static resource database. In this case, the aforementioned steps S201-S211 are executed. Process (2) in the diagram corresponds to the situation where the same terminal sends a resource loading request for a static resource again, including the case where the static resource in the terminal cache has not expired and the static resource has expired. After receiving the resource loading request, the local server can match the corresponding header information in the information cache and then directly feed back the valid resource information to the terminal, or execute the aforementioned steps S213-S219. Process (3) in the diagram corresponds to the situation where the terminal sends a resource loading request for a static resource for the first time, and the local server has received resource loading requests with the same static resource information from other terminals. In this scenario, after the local server matches the header information, it directly reads the static resource from the static resource database and feeds it back to the terminal without having to download the static resource from the cloud server again. Furthermore, process (4) in the figure corresponds to the active update process of static resources in the static resource database. The specific execution method is similar to that of S301-S311 mentioned above, and will not be repeated here.
[0118] Based on the above solution, this application can directly read static resources by matching message header information, without traversing existing static resources in the database, thus improving the response speed of resource loading requests and consequently improving resource loading efficiency. Furthermore, by backing up and storing static resources on a local server, unimpeded loading of page static resources is achieved even in situations with weak or faulty external networks. Moreover, there is no need to distinguish between resource types for storing static resources, reducing system complexity and improving resource access efficiency. Additionally, even if the static resources on the local server are not updated, resource validity information is directly fed back to the terminal to indicate that the cached static resources on the terminal are valid indefinitely. This significantly reduces network traffic and bandwidth during page loading while improving static resource loading speed, making it particularly suitable for B2B (business-to-business) or B2G (business-to-government) scenarios, such as large-screen displays and other scenarios requiring the loading of large numbers of static files, significantly improving the user experience.
[0119] This application embodiment also provides a static resource processing device 800, such as... Figure 8 As shown, Figure 8 The diagram shows a structural schematic of a static resource processing device provided in an embodiment of this application. The device may include the following modules.
[0120] The information searching module 10 is configured to search for the message header information corresponding to the target static resource information from the information cache area in response to the resource loading request carrying the target static resource information sent by the terminal.
[0121] The request sending module 20 is configured to send the resource loading request to the cloud server in the case that the corresponding message header information is not found.
[0122] The response information receiving module 30 is configured to receive the resource response information carrying the target static resource corresponding to the target static resource information sent by the cloud server in response to the resource loading request.
[0123] The message header information generating module 40 is configured to generate the target message header information according to the target static resource information and the resource response information.
[0124] The resource storing module 50 is configured to store the target message header information into the information cache area and store the target static resource into the static resource database, wherein the target message header information and the target static resource are stored in association.
[0125] The resource feedback module 60 is configured to send the target static resource to the terminal.
[0126] In some embodiments, the target static resource information includes resource type information; the target message header information includes cache verification information; and the message header information generating module 40 can include the following units.
[0127] The information obtaining unit is configured to obtain the update time information and the verification identifier of the target static resource from the response header of the resource response information.
[0128] The verification information generating unit is configured to generate the cache verification information in the target message header information according to the update time information and the verification identifier.
[0129] In some embodiments, the resource storing module 50 can include the following units.
[0130] The storage type generating unit is configured to generate the storage type information corresponding to the target message header information according to the resource type information.
[0131] The message header information storing unit is configured to store the target message header information into the corresponding type category in the information cache area according to the storage type information.
[0132] In some embodiments, the apparatus can further include the following modules.
[0133] The first message header information determining module is configured to determine the message header information of the static resource to be updated.
[0134] Static resource deletion module: configured to delete the associated static resource according to the packet header information of the static resource to be updated, and generate a corresponding resource update request.
[0135] Update request sending module: configured to send the resource update request to the cloud server, so that the cloud server sends the updated static resource and the updated cache verification information corresponding to the resource update request.
[0136] Updated resource storage module: configured to update the packet header information of the static resource to be updated based on the updated cache verification information, to obtain updated packet header information.
[0137] Updated resource storage module: configured to establish an association between the updated static resource and the updated packet header information.
[0138] Static resource storage module: configured to store the updated static resource in the static resource database.
[0139] In some embodiments, the packet header information includes update time information of the static resource; the apparatus can further include the following modules.
[0140] Update time acquisition module: configured to periodically acquire the update time information of each static resource in the static resource database from the packet header information in the information cache area before determining the packet header information of the static resource to be updated.
[0141] Second packet header information determination module: configured to determine the packet header information corresponding to the update time information satisfying the preset update condition as the packet header information of the static resource to be updated.
[0142] In some embodiments, the resource loading request further carries resource cache verification information of the corresponding static resource in the terminal cache; the apparatus can further include the following modules.
[0143] Current cache verification information acquisition module: configured to acquire the current cache verification information from the corresponding packet header information when the corresponding packet header information is found.
[0144] Resource validity information feedback module: configured to feed back resource validity information to the terminal in the case that the resource cache verification information matches the current cache verification information, so that the terminal loads the corresponding static resource in the terminal cache.
[0145] In some embodiments, the apparatus can further include the following modules.
[0146] Updated resource acquisition module: configured to acquire the updated static resource associated with the corresponding packet header information from the static resource database in the case that the resource cache verification information does not match the current cache verification information.
[0147] An update resource feedback module is configured to send the update static resource to the terminal, so that the terminal loads the update static resource.
[0148] In some embodiments, the resource storage module 50 can include the following units.
[0149] An image data information acquisition unit is configured to acquire page module attribution information and position information of a plurality of image data when the target static resource includes the plurality of image data.
[0150] An image data determination unit is configured to determine image data belonging to the same page module from the plurality of image data according to the page module attribution information.
[0151] An image merging processing unit is configured to perform image merging processing on the image data belonging to the same page module based on the position information, to obtain a corresponding merged image.
[0152] A resource replacement unit is configured to perform replacement processing on the image data belonging to the same page module by using the merged image, to obtain a replaced target static resource.
[0153] A resource storage unit is configured to store the replaced target static resource into the static resource database.
[0154] It should be noted that the device embodiments and the method embodiments described above are based on the same implementation.
[0155] The embodiments of the present application provide a static resource processing device, which can be a terminal or a server. The static resource processing device includes a processor and a memory. The memory stores at least one instruction or at least one program. The at least one instruction or the at least one program is loaded and executed by the processor to implement the static resource processing method provided in the above method embodiments.
[0156] The memory can be used to store software programs and modules. The processor executes various functions and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store an operating system, application programs required by functions, etc. The data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0157] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal, a server, or similar computing devices and other electronic devices. Figure 9This is a hardware structure block diagram of an electronic device for a static resource processing method provided in an embodiment of this application. For example... Figure 9 As shown, the electronic device 900 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 910 (CPUs 910 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 930 for storing data, and one or more storage media 920 (e.g., one or more mass storage devices) for storing application programs 923 or data 922. The memory 930 and storage media 920 may be temporary or persistent storage. The program stored in the storage media 920 may include one or more modules, each module including a series of instruction operations on the electronic device. Furthermore, the CPU 910 may be configured to communicate with the storage media 920 and execute a series of instruction operations in the storage media 920 on the electronic device 900. The electronic device 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input / output interfaces 940, and / or one or more operating systems 921, such as Windows Server. TM Mac OS X TM Unix TM Linux™, FreeBSD™, etc.
[0158] The input / output interface 940 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the electronic device 900. In one example, the input / output interface 940 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 940 may be a radio frequency (RF) module for wireless communication with the Internet.
[0159] Those skilled in the art will understand that Figure 9 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device 900 may also include... Figure 9 The more or fewer components shown, or having the same Figure 9 The different configurations shown.
[0160] The embodiment of the present application further provides a computer readable storage medium, which can be arranged in an electronic device to store at least one instruction or at least one program for implementing a static resource processing method in the method embodiment, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the static resource processing method provided in the above method embodiment.
[0161] Optionally, in the embodiment, the storage medium can be located in at least one network server of a plurality of network servers of a computer network. Optionally, in the embodiment, the storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media capable of storing program codes.
[0162] According to an aspect of the present application, a computer program product or a computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the method provided in the various optional implementation manners.
[0163] As can be seen from the above embodiments of the static resource processing method, device, equipment, server, terminal storage medium and program product provided by the present application, in response to a resource loading request carrying target static resource information sent by a terminal, the message header information corresponding to the target static resource information is searched from an information cache area; in the case where the corresponding message header information is not found, the resource loading request is sent to a cloud server; the target message header information is generated according to the target static resource information and resource response information; the target message header information is stored in the information cache area, and the target static resource is stored in a static resource database, wherein the target message header information and the target static resource are stored in association; and the target static resource is sent to the terminal. By generating the message header information, storing the message header information in the information cache area, and storing the corresponding static resource in association, the static resource can be read directly by matching the message header information, without traversing the stored static resources in the database, so that the response speed of the resource loading request is improved, and the resource loading efficiency is further improved. In addition, by backing up and storing the static resource in association by the local server, the page static resource can be loaded without obstacles in the case where the external network is weak or fails.
[0164] It should be noted that the above-mentioned order of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of the present application are described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from the order in the embodiments and still achieve the desired result. In addition, the processes depicted in the figures do not necessarily require the particular order or sequential order shown or described to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous or possible.
[0165] Each of the embodiments in the present application is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, for the device, equipment and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0166] A person of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by a program instructing the relevant hardware to complete. The program can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk.
[0167] The above is only a preferred embodiment of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A static resource processing method, applied to a local server, characterized in that, The method includes: In response to a resource loading request sent by a terminal carrying target static resource information, the header information corresponding to the target static resource information is retrieved from the information cache. If the corresponding message header information is not found, the resource loading request is sent to the cloud server. Receive resource response information sent by the cloud server in response to the resource loading request, which carries the target static resource corresponding to the target static resource information; Target message header information is generated based on the target static resource information and the resource response information. The target static resource information includes resource type information, which represents the data type of the target static resource. Generate storage type information corresponding to the target message header information based on the resource type information; According to the storage type information, the target message header information is stored in the corresponding type category in the information cache area, and the target static resource is stored in the static resource database. The same type category corresponds to the same cache partition. The target message header information and the target static resource are stored together. The static resources in the static resource database are stored without classification. The target static resource is sent to the terminal.
2. The method according to claim 1, characterized in that, The target message header information includes cache verification information; the generation of the target message header information based on the target static resource information and the resource response information includes: Obtain the update time information and verification identifier of the target static resource from the response header of the resource response information; The cached verification information in the target message header is generated based on the update time information and the verification identifier.
3. The method according to claim 1, characterized in that, The method further includes: Determine the header information of the static resource to be updated; Delete the associated static resource based on the header information of the static resource to be updated, and generate the corresponding resource update request. Send the resource update request to the cloud server so that the cloud server responds to the resource update request by sending corresponding updates to static resources and cache verification information. The message header information of the static resource to be updated is updated based on the updated cache verification information to obtain the updated message header information; Establish the association between the updated static resource and the updated message header information; The updated static resources are associated and stored in the static resource database.
4. The method according to claim 3, characterized in that, The message header information includes the update time information of static resources; Before determining the header information of the static resource to be updated, the method includes: The update time information of each static resource in the static resource database is periodically obtained from the message header information of the information cache area. The header information corresponding to the update time information that meets the preset update conditions is determined as the header information of the static resource to be updated.
5. The method according to claim 1, characterized in that, The resource loading request also carries resource cache verification information for the corresponding static resource in the terminal cache; the method further includes: If the corresponding message header information is found, the current cached verification information is obtained from the corresponding message header information; If the resource cache verification information matches the current cache verification information, the terminal is fed back resource validity information so that the terminal can load the corresponding static resource in the terminal cache.
6. The method according to claim 5, characterized in that, The method further includes: If the resource cache verification information does not match the current cache verification information, retrieve the updated static resource associated with the corresponding message header information from the static resource database; The updated static resource is sent to the terminal so that the terminal can load the updated static resource.
7. The method according to claim 1, characterized in that, The step of storing the target static resource in the static resource database includes: When the target static resource includes multiple image data, obtain the page module ownership information and location information of the multiple image data; Based on the page module affiliation information, determine the image data belonging to the same page module from the plurality of image data; Based on the location information, the image data belonging to the same page module are processed by image merging to obtain the corresponding merged image; The merged image is used to replace the image data belonging to the same page module to obtain the target static resource after replacement. The replaced target static resource is stored in the static resource database.
8. A static resource processing device, characterized in that, The device includes: Information lookup module: In response to a resource loading request sent by the terminal carrying target static resource information, it looks up the message header information corresponding to the target static resource information from the information cache area; Request sending module: used to send the resource loading request to the cloud server when the corresponding message header information is not found; Response information receiving module: used to receive resource response information sent by the cloud server in response to the resource loading request, which carries the target static resource corresponding to the target static resource information; Message header information generation module: used to generate target message header information based on the target static resource information and the resource response information, wherein the target static resource information includes resource type information, and the resource type information represents the data type of the target static resource; Resource storage module: used to generate storage type information corresponding to the target message header information according to the resource type information; according to the storage type information, store the target message header information in the corresponding type category in the information cache area and store the target static resource in the static resource database, wherein the same type category corresponds to the same cache partition, the target message header information and the target static resource are stored together, and the static resources in the static resource database are stored without classification; Resource feedback module: used to send the target static resource to the terminal.
9. The apparatus according to claim 8, characterized in that, The target message header information includes cached verification information; The message header information generation module includes: Information acquisition unit: used to acquire the update time information and verification identifier of the target static resource from the response header of the resource response information; Verification information generation unit: used to generate cached verification information in the target message header information based on the update time information and the verification identifier.
10. The apparatus according to claim 8, characterized in that, The device further includes: First header information determination module: used to determine the header information of the static resource to be updated; Static resource deletion module: used to delete the associated static resource according to the header information of the static resource to be updated, and generate the corresponding resource update request; Update request sending module: used to send the resource update request to the cloud server, so that the cloud server responds to the resource update request by sending corresponding updated static resources and updated cache verification information; Update resource storage module: used to update the header information of the static resource to be updated based on the update cache verification information, so as to obtain the update header information; Update resource storage module: used to establish the association between the updated static resource and the updated message header information; Static resource storage module: used to associate and store the updated static resources in the static resource database.
11. The apparatus according to claim 10, characterized in that, The message header information includes the update time information of static resources; the device includes: Update time acquisition module: used to periodically acquire the update time information of each static resource in the static resource database from the message header information of the information buffer before determining the message header information of the static resource to be updated; The second header information determination module is used to determine the header information corresponding to the update time information that meets the preset update conditions as the header information of the static resource to be updated.
12. The apparatus according to claim 8, characterized in that, The resource loading request also carries resource cache verification information for the corresponding static resource in the terminal cache; the device further includes: Current cache verification information acquisition module: used to obtain the current cache verification information from the corresponding message header information when the corresponding message header information is found; Resource validity information feedback module: When the resource cache verification information matches the current cache verification information, it feeds back resource validity information to the terminal so that the terminal can load the corresponding static resource in the terminal cache.
13. The apparatus according to claim 12, characterized in that, The device further includes: an updated resource acquisition module: used to acquire, from the static resource database, an updated static resource associated with the corresponding message header information when the resource cache verification information does not match the current cache verification information; Updated resource feedback module: used to send the updated static resources to the terminal so that the terminal can load the updated static resources.
14. The apparatus according to claim 8, characterized in that, The resource storage module includes: Image data information acquisition unit: used to acquire page module ownership information and location information of the multiple image data when the target static resource includes multiple image data; Image data determination unit: used to determine the image data belonging to the same page module from the multiple image data according to the page module ownership information; Image merging processing unit: used to perform image merging processing on image data belonging to the same page module based on the location information, to obtain the corresponding merged image; Resource replacement unit: used to replace the image data belonging to the same page module with the merged image to obtain the replaced target static resource; Resource storage unit: used to store the replaced target static resource into the static resource database.
15. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction or at least one program segment, which is loaded and executed by a processor to implement the static resource processing method as described in any one of claims 1-7.
16. A computer device, characterized in that, The device includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the static resource processing method as described in any one of claims 1-7.
17. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by a processor, implement the static resource processing method as described in any one of claims 1-7.
Citation Information
Patent Citations
Page rendering method and device, electronic equipment and storage medium
CN111708594A