Page access method and device, computer equipment, storage medium and product

By storing page resource data locally on the client and determining the retrieval method based on key information from the cached application manifest, the problem of slow page access speed is solved, achieving fast response and efficient access.

CN121834071APending Publication Date: 2026-04-10SHANGHAI PUDONG DEVELOPMENT BANK
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-02
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

With the increase in the number of users and the frequency of interaction, the amount of page resource data is huge, which wastes time in the resource data acquisition process and affects the page access speed.

Method used

The resource data of the target page is stored locally on the client side. The resource acquisition method is determined by key information recorded in the cached application manifest, including validity verification and cache priority, so as to achieve fast acquisition and response of different resource data.

Benefits of technology

By pre-storing resource data locally on the client and selecting the retrieval method according to different conditions, remote interaction is reduced, thus improving page access efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121834071A_ABST
    Figure CN121834071A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of mobile applications, in particular to a page access method and device, computer equipment, a storage medium and a product. The method comprises the steps of determining a resource acquisition mode of target resource data based on key information corresponding to at least one candidate resource data recorded in a cache application list in response to an access target page under the condition that the target resource data of the target page is locally stored in a client; wherein the candidate resource data is resource data required for responding to the candidate page; obtaining target resource data according to the resource obtaining mode; and performing resource response based on the target resource data to access the target page. According to the method, the target page is accessed, the purpose of reducing far-end interaction is achieved, and the page access efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of mobile application, in particular to a page access method and device, computer equipment, storage medium and product. BACKGROUND

[0002] When a user browses a page through a client, resource data of the page needs to be acquired from a server first, and then the user-selected page is presented by rendering the resource data.

[0003] However, although the number of users is gradually increasing, the interaction between users and pages becomes more frequent, and the amount of resource data of the page is also increasing, so a large amount of resource data acquisition process wastes a lot of time and affects the page access speed. SUMMARY

[0004] Therefore, it is necessary to provide a page access method, device, computer equipment, storage medium and product capable of quickly completing page access in view of the above technical problems.

[0005] In a first aspect, the present application provides a page access method. The method comprises:

[0006] In response to accessing a target page, if the target page has target resource data stored locally on the client, determining a resource acquisition mode of the target resource data based on corresponding key information of at least one candidate resource data recorded in a cache application manifest; wherein the candidate resource data is resource data required in response to a candidate page;

[0007] According to the resource acquisition mode, the target resource data is acquired;

[0008] Based on the target resource data, resource response is performed to realize accessing the target page.

[0009] In one embodiment, the method further comprises:

[0010] In the case that the cache application manifest is in an updated state, determining a resource type of the target resource data;

[0011] According to the resource type and each key information, the resource acquisition mode of the target resource data is determined.

[0012] In one embodiment, the method further comprises:

[0013] In a case where the resource type is a hypertext markup language (HTML) portal resource, the resource obtaining manner is determined as validity verification of the target resource data locally stored by the client according to the key information, and in a case where the validity verification is passed, the target resource data is obtained according to a storage path.

[0014] In one embodiment, the key information includes a first check value of the target resource data, and the validity verification of the target resource data locally stored by the client according to the key information includes:

[0015] determining a second check value of the target resource data locally stored by the client;

[0016] verifying whether the first check value corresponding to the target resource data in the cache application list is same as the second check value;

[0017] if the first check value is same as the second check value, it is determined that the validity verification of the target resource data is passed;

[0018] if the first check value is not same as the second check value, it is determined that the validity verification of the target resource data is not passed.

[0019] In one embodiment, the determination of the resource obtaining manner of the target resource data according to the resource type further includes:

[0020] in a case where the resource type is a non-HTML portal resource, the resource obtaining manner is determined as determination of a cache area of the target resource data according to a file path or a file name, and the target resource data is obtained in the cache area.

[0021] In one embodiment, the key information includes a cache priority of the target resource data, the cache priority includes local cache priority and network negotiation priority, and the determination of the resource obtaining manner of the target resource data based on the cache application list includes:

[0022] in a case where the cache application list is in an un-updated state, if the cache priority of the target resource data in the cache application list is the local cache priority, the resource obtaining manner is to obtain the target resource data according to a storage path;

[0023] if the cache priority of the target resource data in the cache application list is the network negotiation priority, the resource obtaining manner is to send a resource data obtaining request to a server and obtain the target resource data according to a resource data obtaining response fed back by the server.

[0024] In a second aspect, the application further provides a page access device. The device includes:

[0025] determining, in response to accessing a target page, a resource obtaining manner of target resource data of the target page based on corresponding key information of at least one candidate resource data recorded in the cache application manifest, in a case where the target resource data of the target page is locally stored in the client; wherein the candidate resource data is resource data required for responding to a candidate page;

[0026] obtaining, according to the resource obtaining manner, the target resource data;

[0027] responding, based on the target resource data, to a resource to realize accessing the target page.

[0028] In a third aspect, the present application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:

[0029] determining, in response to accessing a target page, a resource obtaining manner of target resource data of the target page based on corresponding key information of at least one candidate resource data recorded in the cache application manifest, in a case where the target resource data of the target page is locally stored in the client; wherein the candidate resource data is resource data required for responding to a candidate page;

[0030] obtaining, according to the resource obtaining manner, the target resource data;

[0031] responding, based on the target resource data, to a resource to realize accessing the target page.

[0032] In a fourth aspect, the present application further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the following steps:

[0033] determining, in response to accessing a target page, a resource obtaining manner of target resource data of the target page based on corresponding key information of at least one candidate resource data recorded in the cache application manifest, in a case where the target resource data of the target page is locally stored in the client; wherein the candidate resource data is resource data required for responding to a candidate page;

[0034] obtaining, according to the resource obtaining manner, the target resource data;

[0035] responding, based on the target resource data, to a resource to realize accessing the target page.

[0036] In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:

[0037] In response to accessing the target page, in a case where the target resource data of the target page is stored locally at the client, determining a resource acquisition manner of the target resource data based on corresponding key information of at least one candidate resource data recorded in the cache application manifest; wherein the candidate resource data is resource data required in response to a candidate page;

[0038] According to the resource acquisition manner, acquiring the target resource data;

[0039] Based on the target resource data, performing resource response to realize accessing the target page.

[0040] The above page access method, device, computer device, storage medium and product, in a case where the target resource data of the target page is stored locally at the client, determine a resource acquisition manner of the target resource data based on corresponding key information of at least one candidate resource data recorded in the cache application manifest, realize acquiring the target resource data according to the resource acquisition manner, and then perform resource response based on the target resource data to realize accessing the target page. According to the above content, it can be known that, in the process of accessing the page, the present application determines the resource acquisition manner of the target resource data in advance, so as to realize different data acquisition manners for different target resource data, then acquire the target resource data according to the resource acquisition manner, and the client of the present application stores candidate resource data corresponding to part of pages locally in advance, so as to realize quick response for different pages, ensure that, in a case where the target resource data of the target page exists in the client locally and meets preset conditions, the target resource data of the target page is directly called from the client locally, then perform resource response based on the target resource data to realize accessing the target page, so as to reduce remote interaction and improve the access efficiency of the page. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 An application environment diagram of the first page access method provided by the embodiment of the present application is provided;

[0042] Figure 2 A flowchart of the first page access method provided by the embodiment of the present application is provided;

[0043] Figure 3 A flowchart of the second page access method provided by the embodiment of the present application is provided;

[0044] Figure 4A third page access method provided by an embodiment of the present application is shown in a flowchart.

[0045] Figure 5 A fourth page access method provided by an embodiment of the present application is shown in a flowchart.

[0046] Figure 6 A structure block diagram of a first page access device provided by an embodiment of the present application is shown.

[0047] Figure 7 An internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION

[0048] To make the objectives, technical solutions and advantages of the present application clearer, further detailed descriptions are made to the present application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.

[0049] The page access method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . The client 102 communicates with the server 104 through a network. The data storage system can store data required to be processed by the server 104. The data storage system can be integrated on the server 104, or placed on a cloud or other network server. In the case that the target resource data of the target page is stored locally on the client, the corresponding key information of at least one candidate resource data recorded in the cache application manifest is determined to determine the resource acquisition mode of the target resource data, so as to acquire the target resource data according to the resource acquisition mode, and then the resource response is performed based on the target resource data to realize the access to the target page. The client 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0050] In an embodiment, as shown in Figure 2 , a page access method is provided. Taking the client 102 in Figure 1 as an example, the method includes the following steps:

[0051] S201, in response to accessing a target page, in the case that the target resource data of the target page is stored locally on the client, the corresponding key information of at least one candidate resource data recorded in the cache application manifest is determined to determine the resource acquisition mode of the target resource data.

[0052] The candidate resource data is resource data required by the candidate page.

[0053] It should be noted that the cache application list only contains information of candidate resource files of at least one candidate page and information of candidate resource files under a public service (including a file path, an MD5 value of a latest file, and a flag of whether to prefer local caching, wherein each information is recorded in a key-value form.

[0054] Specifically, the key information can contain a first check value of the candidate resource data and a cache priority of the candidate resource data.

[0055] Further, in response to accessing the target page, the cache application list is updated, and the updating process of the cache application list can include the following contents: the client initiates a list transaction request to the server, the server obtains a new cache application list and sends it to the client, and the client updates the old cache application list after receiving the new cache application list, and performs persistent caching, so as to realize the operation of updating the cache application list.

[0056] In an embodiment of the present application, when it is necessary to determine the resource acquisition mode of the target resource data based on the corresponding key information of at least one candidate resource data recorded in the cache application list, the following contents can be included: determining the update state of the cache application list, and determining the resource type of the target resource data; and then, according to the resource type and each key information, determining the resource acquisition mode of the target resource data.

[0057] The update state of the cache application list includes an updated state and an unupdated state.

[0058] Further, the cache application list update request can be sent to the server to obtain the cache application list in the latest state, the cache application list in the latest state is used to replace the local cache application list, and the updating operation of the cache application list is completed, at this time, it is determined that the update state of the cache application list is the updated state; if the cache application list in the latest state cannot be obtained from the server, it is determined that the update state of the cache application list is the unupdated state.

[0059] In another embodiment of the present application, the updating operation for the cache application list can also be implemented according to the user usage record; specifically, the page access record of the user in a preset period can be acquired; then, the preset number of high-frequency pages with the highest user access frequency can be filtered out according to the page access record; the identifiers corresponding to the resource data of each high-frequency page are added into the cache application list, and the resource data of the high-frequency page is pre-stored locally. In this way, the on-demand pulling algorithm and the dynamic updating mechanism are implemented, the high-frequency used pages and the recently used list are dynamically prioritized, updated and issued, the user usage habit is matched, and the traffic consumption is reduced.

[0060] Among them, the dynamic updating mechanism refers to automatically deleting the super window period data when the client starts the application, and rolling up the historical data by month; the on-demand pulling algorithm refers to only pre-fetching high-frequency HTML pages (excluding JS / CSS and other non-core resources), and greatly reducing the traffic.

[0061] S202, acquiring target resource data according to the resource acquisition mode.

[0062] It should be noted that after determining the resource acquisition mode, the acquisition operation of the target resource data can be performed based on the resource acquisition mode, so as to achieve the purpose of acquiring the target resource data.

[0063] As an example, the resource acquisition mode can be to verify the validity of the target resource data stored locally by the client according to each key information, and acquire the target resource data according to the storage path when the validity verification is passed.

[0064] As another example, the resource acquisition mode can also be to determine the cache area of the target resource data according to the file path or the file name, and acquire the target resource data in the cache area.

[0065] S203, performing resource response based on the target resource data to realize access to the target page.

[0066] In an embodiment of the present application, after acquiring the target resource data, the resource response can be implemented by data rendering and data processing of the target resource data, and finally the purpose of accessing the target page is achieved.

[0067] It should be noted that in the stage of accessing a specific page by the client, when the client initiates a resource request to the server, after all resource requests are responded, the Static-Length field or the Content-Length field in the response header is checked with the length of the requested resource, and only when the two are consistent, the requested resource file is cached locally.

[0068] Further, the resource data cache can be written to a temporary path first when local, and after successful writing, the resource data is renamed to the real cache path to ensure that the resource data writing is complete.

[0069] To ensure reasonable caching of resource data and improve the response efficiency of resource data, when caching resource data, a hierarchical classification caching method can be used. Specifically, the resource data can be divided into: oss picture resource data (path starts with / oss), common static resource data (path contains public resource identifier), non-common static resource data, and resource data in the resource manifest (stored by the content-type field in the response header and the manifest confirmation). Further, for oss picture resource data, non-common static resource data, and HTML page resource data, file paths are used as keys for caching, and for common resource data, the last file name is used as a key for caching.

[0070] Further, when the client sends a request to the server, the client system type automatically injects a resource version mark (android / ios / harmonyos), and the server can dynamically issue different resources according to the client operating system type, so that the same request can dynamically issue platform-specific resources.

[0071] The above page access method determines the resource acquisition method of the target resource data based on the corresponding key information of at least one candidate resource data recorded in the cache application manifest when the target resource data of the target page is stored locally on the client, acquires the target resource data according to the resource acquisition method, and then performs resource response based on the target resource data to access the target page. According to the above content, the resource acquisition method of the target resource data is determined in advance during page access, which realizes different data acquisition methods for different target resource data, and then the target resource data is acquired according to the resource acquisition method. Moreover, the client pre-stores candidate resource data corresponding to part of the pages locally, which realizes fast response for different pages, ensures that the target resource data of the target page is directly retrieved from the local client when the target resource data exists in the local client and meets the preset conditions, and then resource response is performed based on the target resource data to access the target page, thereby reducing remote interaction and improving the page access efficiency.

[0072] In one embodiment, as Figure 3As shown, when it is needed to determine the resource acquisition manner of the target resource data based on the corresponding key information of at least one candidate resource data recorded in the cache application list, the following contents can be included:

[0073] S301, in the case that the cache application list is in the updated state, determining the resource type of the target resource data.

[0074] It should be noted that the resource type includes an HTML entry resource and a non-HTML entry resource.

[0075] S302, determining the resource acquisition manner of the target resource data according to the resource type and the key information.

[0076] In an embodiment of the present application, in the case that the resource type is a HyperText Markup Language (HTML) entry resource, the resource acquisition manner is determined to be validity verification of the target resource data stored locally by the client according to the key information, and in the case that the validity verification is passed, the target resource data is acquired according to the storage path.

[0077] Further, the key information includes a first check value of the target resource data.

[0078] Therefore, when it is needed to perform validity verification of the target resource data stored locally by the client according to the key information, a second check value of the target resource data stored locally by the client can be determined; it is verified whether the first check value corresponding to the target resource data in the cache application list is same as the second check value; if yes, it is determined that the validity verification of the target resource data is passed; if no, it is determined that the validity verification of the target resource data is not passed.

[0079] If it is determined that the validity verification of the target resource data is not passed, the target resource data is acquired from the target resource data acquisition response fed back from the server by sending a target resource data acquisition request to the server.

[0080] Wherein, the first check value and the second check value can be MD5 check values.

[0081] In another embodiment of the present application, in the case that the resource type is a non-HTML entry resource, the resource acquisition manner is determined to be determining a cache area of the target resource data according to a file path or a file name, and acquiring the target resource data in the cache area.

[0082] In an embodiment of the present application, in the case that the cache application list is in the updated state, the application program pre-intercepts the resource request sent to the server, at this time the client determines the resource type of the target resource data, in the case that the resource type is an HTML entry resource, ensures the entry accuracy based on the MD5 strong checksum and the cache application list, avoids loading to the old entry address. Non-HTML resources use resource integrity mode matching, according to the integrity ensured during downloading, determines the resource acquisition mode as determining the cache area of the target resource data according to the file path or the file name, and acquires the target resource data in the cache area.

[0083] Specifically, for the oss picture resource, the target resource data is acquired from the corresponding cache area according to the file path; for the common type static resource, the target resource data is acquired from the corresponding cache area according to the file name; for the non-common type static resource, the target resource data is acquired from the corresponding cache area according to the file path; for the resource data in the resource list (by judging whether the path is in the resource list), it is verified whether the first check value and the second check value of the target resource data in the cache application list are the same, if the same, the target resource data is acquired according to the storage path, and finally the resource response is performed based on the target resource data, so as to realize the access to the target page.

[0084] The above page access method determines the resource type of the target resource data in the case that the cache application list is in the updated state, realizes the determination of the resource acquisition mode of the target resource data according to the resource type and the key information, ensures that the target resource data can be acquired according to the resource acquisition mode in the subsequent, and realizes the final target page access operation.

[0085] In an embodiment, as shown in Figure 4 If the key information contains the cache priority of the target resource data, the cache priority includes local cache priority and network negotiation priority, therefore, when the resource acquisition mode of the target resource data is determined based on the cache application list, the following contents can be included:

[0086] S401, in the case that the cache application list is in the un-updated state, if the cache priority of the target resource data in the cache application list is local cache priority, the resource acquisition mode is to acquire the target resource data according to the storage path.

[0087] It should be noted that in the case that the cache application list is in the un-updated state, when the candidate resource data contained in the cache application list performs resource response, an asynchronous cache application list updating operation is triggered once.

[0088] Among them, the update frequency of the cache application list updating operation is updated once within sixty seconds at the fastest.

[0089] S402, if the cache priority of the target resource data in the cached application list is network negotiation priority, then the resource acquisition method is to send a resource data acquisition request to the server and acquire the target resource data according to the resource data acquisition response fed back by the server.

[0090] Specifically, the data retrieval request header includes an If-None-Match field. The value of the If-None-Match field is the first checksum of the target resource data in the cached application manifest. If the cached application manifest does not contain the target resource data, the value of the If-None-Match field is empty.

[0091] It should be noted that if the resource data retrieval response from the server contains preset characters, the resource retrieval method is to obtain the target resource data according to the storage path; if the resource data retrieval response from the server contains target resource data, the target resource data in the resource data retrieval response will be used as the resource for the final resource response.

[0092] The above page access method determines the resource acquisition method of the target resource data based on the cache priority of the target resource data in the cached application list when the cached application list is not updated, thus ensuring the smooth progress of subsequent processes.

[0093] In one embodiment, such as Figure 5 As shown, when access to a target page is required, the following can be included:

[0094] S501, in response to accessing the target page, if the target resource data of the target page is stored locally on the client, and if the cached application list is in an updated state, determine the resource type of the target resource data.

[0095] S502, when the resource type is Hypertext Markup Language (HTML) entry resource, the resource acquisition method is determined to be to perform validity verification on the target resource data stored locally on the client based on each key information, and to acquire the target resource data according to the storage path if the validity verification is successful.

[0096] S503, when the resource type is not an HTML entry resource, the resource acquisition method is determined by identifying the cache area of ​​the target resource data based on the file path or file name, and the target resource data is acquired within the cache area.

[0097] S504, if the cached application list is not updated, and the cache priority of the target resource data in the cached application list is local cache priority, then the resource acquisition method is to obtain the target resource data according to the storage path.

[0098] S505, if the caching priority of the target resource data in the cached application list is network negotiation priority, then the resource acquisition method is to send a resource data acquisition request to the server and acquire the target resource data according to the resource data acquisition response fed back by the server.

[0099] S506, Obtain target resource data according to the resource acquisition method.

[0100] S507, based on the target resource data, performs a resource response to enable access to the target page.

[0101] The aforementioned page access method, when the target resource data of the target page is stored locally on the client, determines the resource acquisition method of the target resource data based on the key information corresponding to at least one candidate resource data recorded in the cached application manifest. This enables the acquisition of the target resource data according to the resource acquisition method. Furthermore, a resource response is performed based on the target resource data to access the target page. As can be seen from the above, this application, during the page access process, pre-determines the resource acquisition method of the target resource data, thereby enabling different data acquisition methods to be used for different target resource data. The target resource data is then acquired according to the resource acquisition method. Moreover, the client of this application pre-stores candidate resource data corresponding to some pages locally, thereby achieving rapid response for different pages. This ensures that if the target resource data of the target page exists locally on the client and meets preset conditions, the target resource data of the target page is directly retrieved from the client's local storage. Then, a resource response is performed based on the target resource data to access the target page, thereby reducing remote interaction and improving page access efficiency.

[0102] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0103] Based on the same inventive concept, this application also provides a page access device for implementing the page access method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more page access device embodiments provided below can be found in the limitations of the page access method described above, and will not be repeated here.

[0104] In one embodiment, such as Figure 6 As shown, a page access device is provided, including: a determining module 10, an obtaining module 20, and a responding module 30, wherein:

[0105] The determination module 10 is used to determine the resource acquisition method of the target resource data based on the key information corresponding to at least one candidate resource data recorded in the cached application list when the target resource data of the target page is stored locally on the client, in response to accessing the target page; wherein, the candidate resource data is the resource data required to respond to the candidate page;

[0106] The acquisition module 20 is used to acquire target resource data according to the resource acquisition method;

[0107] The response module 30 is used to provide resource responses based on the target resource data in order to enable access to the target page.

[0108] In one embodiment, if the cached application list is in an updated state, the resource type of the target resource data is determined;

[0109] Based on the resource type and key information, determine the resource acquisition method for the target resource data.

[0110] In one embodiment, when the resource type is a Hypertext Markup Language (HTML) entry resource, the resource acquisition method is determined by validating the target resource data stored locally on the client based on each key information, and if the validity verification is successful, the target resource data is acquired according to the storage path.

[0111] In one embodiment, a second verification value of the target resource data stored locally on the client is determined;

[0112] Verify whether the first checksum and the second checksum corresponding to the target resource data in the cached application manifest are the same;

[0113] If they are the same, then the validity verification of the target resource data is confirmed to have passed;

[0114] If they are different, then the validity of the target resource data has not been verified.

[0115] In one embodiment, when the resource type is a non-HTML entry resource, the resource acquisition method is determined by identifying the cache area of ​​the target resource data based on the file path or file name, and then acquiring the target resource data within the cache area.

[0116] In one embodiment, if the cache priority of the target resource data in the cached application list is local cache priority when the cached application list is not updated, the resource acquisition method is to obtain the target resource data according to the storage path.

[0117] If the cache priority of the target resource data in the cached application manifest is network negotiation first, then the resource acquisition method is to send a resource data acquisition request to the server and obtain the target resource data according to the resource data acquisition response returned by the server.

[0118] The aforementioned page access device, when the target resource data of the target page is stored locally on the client, determines the resource acquisition method of the target resource data based on the key information corresponding to at least one candidate resource data recorded in the cached application list, thereby achieving the acquisition of the target resource data according to the resource acquisition method; and then, performs a resource response based on the target resource data to achieve access to the target page. As can be seen from the above, this application, during the page access process, pre-determines the resource acquisition method of the target resource data, thus enabling different data acquisition methods to be used for different target resource data, and then acquires the target resource data according to the resource acquisition method; furthermore, the client of this application pre-stores candidate resource data corresponding to some pages locally, thereby achieving fast response for different pages, ensuring that if the target resource data of the target page exists locally on the client and meets preset conditions, the target resource data of the target page is directly retrieved from the client's local storage, and then a resource response is performed based on the target resource data to achieve access to the target page, thereby reducing remote interaction and improving page access efficiency.

[0119] Each module in the aforementioned page access device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0120] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a page access method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0121] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0122] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0123] In response to accessing a target page, if the target resource data of the target page is stored locally on the client, the resource acquisition method of the target resource data is determined based on the key information corresponding to at least one candidate resource data recorded in the cached application manifest; wherein, the candidate resource data is the resource data required to respond to the candidate page;

[0124] Obtain the target resource data based on the resource acquisition method;

[0125] Resource responses are generated based on the target resource data to enable access to the target page.

[0126] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0127] If the cached application manifest is in an updated state, determine the resource type of the target resource data;

[0128] Based on the resource type and key information, determine the resource acquisition method for the target resource data.

[0129] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0130] When the resource type is Hypertext Markup Language (HTML) entry resource, the resource acquisition method is determined to be to verify the validity of the target resource data stored locally on the client based on each key information, and to acquire the target resource data according to the storage path if the validity verification is successful.

[0131] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0132] Determine the second checksum of the target resource data stored locally on the client;

[0133] Verify whether the first checksum and the second checksum corresponding to the target resource data in the cached application manifest are the same;

[0134] If they are the same, then the validity verification of the target resource data is confirmed to have passed;

[0135] If they are different, then the validity of the target resource data has not been verified.

[0136] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0137] When the resource type is not an HTML entry resource, the resource acquisition method is to determine the cache area of ​​the target resource data based on the file path or file name, and then acquire the target resource data within the cache area.

[0138] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0139] If the cached application manifest is not updated, and the cache priority of the target resource data in the cached application manifest is local cache priority, then the resource acquisition method is to obtain the target resource data according to the storage path.

[0140] If the cache priority of the target resource data in the cached application manifest is network negotiation first, then the resource acquisition method is to send a resource data acquisition request to the server and obtain the target resource data according to the resource data acquisition response returned by the server.

[0141] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0142] In response to accessing a target page, if the target resource data of the target page is stored locally on the client, the resource acquisition method of the target resource data is determined based on the key information corresponding to at least one candidate resource data recorded in the cached application manifest; wherein, the candidate resource data is the resource data required to respond to the candidate page;

[0143] Obtain the target resource data based on the resource acquisition method;

[0144] Resource responses are generated based on the target resource data to enable access to the target page.

[0145] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0146] If the cached application manifest is in an updated state, determine the resource type of the target resource data;

[0147] Based on the resource type and key information, determine the resource acquisition method for the target resource data.

[0148] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0149] When the resource type is Hypertext Markup Language (HTML) entry resource, the resource acquisition method is determined to be to verify the validity of the target resource data stored locally on the client based on each key information, and to acquire the target resource data according to the storage path if the validity verification is successful.

[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0151] Determine the second checksum of the target resource data stored locally on the client;

[0152] Verify whether the first checksum and the second checksum corresponding to the target resource data in the cached application manifest are the same;

[0153] If they are the same, then the validity verification of the target resource data is confirmed to have passed;

[0154] If they are different, then the validity of the target resource data has not been verified.

[0155] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0156] When the resource type is not an HTML entry resource, the resource acquisition method is to determine the cache area of ​​the target resource data based on the file path or file name, and then acquire the target resource data within the cache area.

[0157] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0158] If the cached application manifest is not updated, and the cache priority of the target resource data in the cached application manifest is local cache priority, then the resource acquisition method is to obtain the target resource data according to the storage path.

[0159] If the cache priority of the target resource data in the cached application manifest is network negotiation first, then the resource acquisition method is to send a resource data acquisition request to the server and obtain the target resource data according to the resource data acquisition response returned by the server.

[0160] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0161] In response to accessing a target page, if the target resource data of the target page is stored locally on the client, the resource acquisition method of the target resource data is determined based on the key information corresponding to at least one candidate resource data recorded in the cached application manifest; wherein, the candidate resource data is the resource data required to respond to the candidate page;

[0162] Obtain the target resource data based on the resource acquisition method;

[0163] Resource responses are generated based on the target resource data to enable access to the target page.

[0164] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0165] If the cached application manifest is in an updated state, determine the resource type of the target resource data;

[0166] Based on the resource type and key information, determine the resource acquisition method for the target resource data.

[0167] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0168] When the resource type is Hypertext Markup Language (HTML) entry resource, the resource acquisition method is determined to be to verify the validity of the target resource data stored locally on the client based on each key information, and to acquire the target resource data according to the storage path if the validity verification is successful.

[0169] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0170] Determine the second checksum of the target resource data stored locally on the client;

[0171] Verify whether the first checksum and the second checksum corresponding to the target resource data in the cached application manifest are the same;

[0172] If they are the same, then the validity verification of the target resource data is confirmed to have passed;

[0173] If they are different, then the validity of the target resource data has not been verified.

[0174] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0175] When the resource type is not an HTML entry resource, the resource acquisition method is to determine the cache area of ​​the target resource data based on the file path or file name, and then acquire the target resource data within the cache area.

[0176] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0177] If the cached application manifest is not updated, and the cache priority of the target resource data in the cached application manifest is local cache priority, then the resource acquisition method is to obtain the target resource data according to the storage path.

[0178] If the cache priority of the target resource data in the cached application manifest is network negotiation first, then the resource acquisition method is to send a resource data acquisition request to the server and obtain the target resource data according to the resource data acquisition response returned by the server.

[0179] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0180] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0181] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0182] The above embodiments merely illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this application's patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for accessing a webpage, characterized in that, The method includes: In response to accessing a target page, if the target resource data of the target page is stored locally on the client, the resource acquisition method of the target resource data is determined based on the key information corresponding to at least one candidate resource data recorded in the cached application manifest; wherein, the candidate resource data is the resource data required to respond to the candidate page; According to the resource acquisition method, the target resource data is acquired; Resource responses are performed based on the target resource data to enable access to the target page.

2. The method according to claim 1, characterized in that, The method for determining the resource acquisition method of the target resource data based on key information corresponding to at least one candidate resource data recorded in the cached application manifest includes: If the cached application list is in an updated state, determine the resource type of the target resource data; Based on the resource type and each of the key information, determine the resource acquisition method for the target resource data.

3. The method according to claim 2, characterized in that, The step of determining the resource acquisition method for the target resource data based on the resource type and each of the key information includes: When the resource type is a Hypertext Markup Language (HTML) entry resource, the resource acquisition method is determined to be to perform validity verification on the target resource data stored locally on the client based on each of the key information, and to acquire the target resource data according to the storage path if the validity verification is successful.

4. The method according to claim 3, characterized in that, The key information includes a first verification value of the target resource data. The step of validating the target resource data stored locally on the client based on each piece of key information includes: Determine a second verification value for the target resource data stored locally on the client; Verify whether the first check value and the second check value corresponding to the target resource data in the cached application list are the same; If they are the same, then the validity verification of the target resource data is confirmed to have passed; If they are different, then the validity of the target resource data has not been verified.

5. The method according to claim 2, characterized in that, The step of determining the resource acquisition method for the target resource data based on the resource type further includes: When the resource type is a non-HTML entry resource, the resource acquisition method is determined to be a cache area for the target resource data based on the file path or file name, and the target resource data is acquired within the cache area.

6. The method according to claim 1, characterized in that, The key information includes the caching priority of the target resource data, which includes local caching priority and network negotiation priority. The step of determining the resource acquisition method for the target resource data based on the cached application list includes: If the cached application list is not updated, and the cache priority of the target resource data in the cached application list is that the local cache is preferred, then the resource acquisition method is to acquire the target resource data according to the storage path. If the cache priority of the target resource data in the cached application list is network negotiation priority, then the resource acquisition method is to send a resource data acquisition request to the server and acquire the target resource data according to the resource data acquisition response fed back by the server.

7. A page access device, characterized in that, The device includes: The determination module is used to, in response to accessing a target page, determine the resource acquisition method of the target resource data based on key information corresponding to at least one candidate resource data recorded in the cached application manifest, provided that the target resource data of the target page is stored locally on the client; wherein, the candidate resource data is the resource data required to respond to the candidate page; The acquisition module is used to acquire the target resource data according to the resource acquisition method. The response module is used to perform resource responses based on the target resource data in order to enable access to the target page.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.