CN111159596A - Application resource access control method and device - Google Patents

Application resource access control method and device Download PDF

Info

Publication number
CN111159596A
CN111159596A CN201911355281.1A CN201911355281A CN111159596A CN 111159596 A CN111159596 A CN 111159596A CN 201911355281 A CN201911355281 A CN 201911355281A CN 111159596 A CN111159596 A CN 111159596A
Authority
CN
China
Prior art keywords
application
application resource
client
request
resource access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911355281.1A
Other languages
Chinese (zh)
Inventor
秦瑞雄
冯晓峰
王思梦
杜嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911355281.1A priority Critical patent/CN111159596A/en
Publication of CN111159596A publication Critical patent/CN111159596A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an application resource access control method and device, wherein the method comprises the following steps: acquiring an application resource access request sent by a client; acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request; feeding back the acquired application resources to the client so that the client loads a page according to the application resources; the problem that the client accesses the white screen of the mobile terminal page can be effectively solved by pre-storing the application resources of the multiple versions, and the page loading and rendering speed of the client is improved.

Description

Application resource access control method and device
Technical Field
The invention relates to the technical field of computers, in particular to an application resource access control method and device.
Background
Client page caching is an effective method for reducing server load, reducing network congestion, improving system efficiency and improving user experience. However, in actual use, there still occurs a problem that the client does not have any content rendering presentation when accessing the mobile end page, and a blank screen appears.
When the prior art is used for solving the problem, the server forces the client to use new page styles and script files as much as possible or requires the client to forcibly refresh pages and clear cache, so that the page loading and rendering of the client are slow, and the problem that the client accesses the page of the mobile terminal to be blank can not be thoroughly solved.
Disclosure of Invention
In view of the problems in the prior art, the present invention provides an application resource access control method and apparatus, an electronic device, and a computer-readable storage medium, which can at least partially solve the problems in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, a method for controlling access to application resources is provided, including:
acquiring an application resource access request sent by a client;
acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request;
and feeding back the acquired application resources to the client so that the client loads a page according to the application resources.
Further, the application resource access control method further includes:
acquiring a resource forced updating request sent by a client, wherein the forced updating request comprises a current resource version number;
matching the current resource version number with a prestored latest version number;
and if the matching fails, feeding back the application resource corresponding to the latest version number to the client so as to enable the client to dynamically load the application resource.
Further, the application resource access control method further includes:
and recording an application resource access log.
Further, the application resource access log comprises: version number, request URL, User-agent cache time and request time;
the application resource access control method further comprises the following steps:
acquiring the last request time points of the application resources of the multiple versions according to the request time and the version numbers;
acquiring an application resource list which has no request record at the current time point according to the last request time point and the current time point of the application resource request URL of each version;
acquiring an overdue application resource list according to the application resource list and the User-agent cache time;
and cleaning the application resources according to the expired application resource list.
In a second aspect, an application resource access control apparatus is provided, including:
the application resource access request acquisition module is used for acquiring an application resource access request sent by a client;
the application resource acquisition module is used for acquiring application resources of corresponding versions from prestored application resources of a plurality of versions according to the application resource access request;
and the application resource feedback module feeds the acquired application resources back to the client so that the client loads a page according to the application resources.
Further, the application resource access control device further includes:
the resource forced updating request acquisition module is used for acquiring a resource forced updating request sent by a client, wherein the forced updating request comprises a current resource version number;
the version matching module is used for matching the current resource version number with the prestored latest version number;
and if the matching fails, the latest resource feedback module feeds back the application resource corresponding to the latest version number to the client so as to enable the client to dynamically load the application resource.
Further, the application resource access control device further includes:
and the log recording module is used for recording the application resource access log.
Further, the application resource access log comprises: version number, request URL, User-agent cache time and request time;
the application resource access control device further comprises:
the request time analysis module is used for acquiring the last request time points of the application resources of the multiple versions according to the request time and the version number;
the resource screening module is used for acquiring an application resource list of which the current time point has no request record according to the last request time point and the current time point of the application resource request URL of each version;
the overdue resource list acquisition module is used for acquiring an overdue application resource list according to the application resource list and the User-agent cache time;
and the resource cleaning module is used for cleaning the application resources according to the overdue application resource list.
In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the application resource access control method.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the application resource access control method described above.
The invention provides an application resource access control method and device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring an application resource access request sent by a client; acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request; feeding back the acquired application resources to the client so that the client loads a page according to the application resources; the problem that the client accesses the white screen of the mobile terminal page can be effectively solved by pre-storing the application resources of the multiple versions, and the page loading and rendering speed of the client is improved.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. In the drawings:
FIG. 1 is a schematic diagram of an architecture between a server S1 and a client device B1 according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an application resource access control method according to an embodiment of the present invention;
fig. 3 is a detailed content of step S400 to step S600 of the application resource access control method in the embodiment of the present invention;
fig. 4 is a detailed content of steps S700 to S1000 of the application resource access control method in the embodiment of the present invention;
FIG. 5 shows the overall architecture of the application resource access control method in an embodiment of the invention;
fig. 6 is a block diagram showing the structure of an application resource access control device in the embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
When the prior art is used for processing the white screen problem, the server forces the client to use new page styles and script files as much as possible or requires the client to forcibly refresh pages and clear cache, so that the page loading and rendering of the client is slow, and the problem that the client accesses the white screen of the mobile end page cannot be thoroughly solved.
In order to at least partially solve the technical problems in the prior art, embodiments of the present invention provide an application resource access control method, which can effectively solve the problem that a client accesses a white screen of a mobile page by prestoring multiple versions of application resources, and improve the page loading and rendering speed of the client.
In view of the above, the present application provides an application resource access control apparatus, which may be a server S1, and referring to fig. 1, the server S1 may be communicatively connected to at least one client device B1, the client device B1 may send an application resource access request to the server S1, and the server S1 may receive the application resource access request online. The server S1 may perform preprocessing on the obtained application resource access request online or offline, and obtain the application resource of the corresponding version from the pre-stored application resources of multiple versions according to the application resource access request. Then, the server S1 may send the obtained application resource back to the client device B1 online. The client device B1 may receive the application resource online and load a page according to the application resource.
It is understood that the client device B1 may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
The server and the client device may communicate using any suitable network protocol, including network protocols not yet developed at the filing date of this application. The network protocol may include, for example, a TCP/IP protocol, a UDP/IP protocol, an HTTP protocol, an HTTPS protocol, or the like. Of course, the network Protocol may also include, for example, an RPC Protocol (Remote Procedure Call Protocol), a REST Protocol (Representational State Transfer Protocol), and the like used above the above Protocol.
Fig. 2 is a flowchart illustrating an application resource access control method in an embodiment of the present invention, where the application resource access control method is executed on a server side; as shown in fig. 2, the application resource access control method may include the following:
step S100: acquiring an application resource access request sent by a client;
step S200: acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request;
the server side prestores a plurality of versions of application resources.
Specifically, according to different request urls, different versions are matched and applied, and application resources of corresponding versions requested by a user are obtained.
Step S300: and feeding back the acquired application resources to the client so that the client loads a page according to the application resources.
It is worth to say that the server side issues multiple application versions to provide external services: when the application is released, a new application resource is formed by compiling and packaging.
For example, an index.html page, where 5.version hash.js and 5.version hash.css files are cited in the page, and a historical version of the index.html page includes page resources of [0-4]. version hash.js and [0-4]. version hash.css files, when a server side issues an application, assuming that a root directory issued is webapps, in an issuing process, all the historical versions of js and css included in the index.html and the file issued this time need to be issued, and an issuing result is shown as follows: html, webapp/html/index.js, webapp/js/5. versionhash.js, webapp/js/[ 0-4]. versionhash.js, webapp/js/5. versionhash.css, webapp/js/[ 0-4]. versionhash.css.
It is worth to be noted that, after a great deal of research and analysis by the applicant, it is found that a white screen appears when the client accesses the mobile end page, because the server issues new page content, the page content of the historical version does not exist at the server, and because the client has page cache, the client cannot acquire the latest page style file and the script processing file from the server, so that the client cannot perform page rendering. A blank screen appears. Based on the important discovery, the application resource access control method provided by the invention has the advantages that the server side prestores a plurality of versions of application resources, so that the client side can obtain page contents of historical versions, the problem of blank screen of a page of a mobile side accessed by the client side can be effectively solved, and the page loading and rendering speed of the client side is improved.
In an alternative embodiment, referring to fig. 3, the application resource access control method may further include the following:
step S400: acquiring a resource forced updating request sent by a client, wherein the forced updating request comprises a current resource version number;
the application resources which need to be forcibly updated are managed by adding the version number, so that the forcible updating request must contain the version number of the current resource so as to judge whether the resource needs to be updated.
Step S500: matching the current resource version number with a prestored latest version number;
specifically, comparing the current resource version number with the prestored latest version number; if the comparison is consistent, the matching is considered to be successful, and the current resource version number is returned; if the comparison is not consistent, the matching fails, and step S600 is executed.
Step S600: and if the matching fails, feeding back the application resource corresponding to the latest version number to the client so as to enable the client to dynamically load the application resource.
And matching the latest version number of the server according to the request url and the current resource version number, returning the latest version number if the latest version number is inconsistent, and dynamically loading the resource url by the client.
It is worth mentioning that the server side provides a dynamic update service for the application resources that need to be forcibly updated: when the application is released, if the application resource which is depended on by a certain function needs to be updated forcibly, adding the version number into the application resource file at the server side and providing dynamic update service management update;
html page, for example, a frame resource, such as frame.js, is referred to in the page, and when referred to in index.html page, a version number, such as: < script
src? v ═ version } ">/when the first application is released, is: js? And v is 1.0.0.1' > < script >, and when the second application is released, the method comprises the following steps: js? And v is 1.0.0.2' > < script >, and updating is recorded through the change of v ═ { version }, so that effective updating of application resources needing forced updating is realized, the problem of white screen is further prevented, and the user experience is improved.
In an optional embodiment, the application resource access control method may further include: and recording an application resource access log to form an application access log file.
The access log is recorded, so that the access condition of the application resources can be mastered in real time, and resource management is facilitated.
In a further embodiment, see FIG. 4, wherein the application resource access log comprises: version number, User-agent cache time, request url, IP address, response time, status code, etc.; the application resource access control method may further include:
step S700: acquiring the last request time points of the application resources of the multiple versions according to the request time and the version numbers;
step S800: acquiring an application resource list which has no request record at the current time point according to the last request time point and the current time point of the application resource request URL of each version;
step S900: acquiring an overdue application resource list according to the application resource list and the User-agent cache time;
step S1000: and cleaning the application resources according to the expired application resource list.
The server collects the log files to a big data platform, application resource access data analysis is carried out through request time, request url, version number and User-agent, so that application resources are cleaned in time, resource occupation of the server is reduced, and processing efficiency of the server is improved.
In summary, the application resource access control method provided by the embodiment of the present invention comprehensively considers the client page cache, the server processing efficiency, and the user experience, and effectively improves the service level.
Fig. 5 shows an overall architecture of an application resource access control method in the embodiment of the present invention. As shown in fig. 5, the application operation and maintenance staff automatically construct the application resources, and release and deploy the application resources to the server side, so that the server side deploys multiple versions of the application resources, such as the historical application front-end versions v 1-v 4.
The client can selectively request any historical application front-end version, and the requested historical application front-end version is used for acquiring the application micro-service. Moreover, the server side records the history of the access page and is used for cleaning up the micro-service; specifically, if there are history pages which are accessed for more than 90 days, a cleaning task is initiated to clean up pages which are not accessed for more than 90 days in each history front-end version, so as to release resources of the server side.
In addition, for the page file forced updating process, the client requests the application front end, the application front end requests the application microservice, whether the requested resource needs forced updating is judged, if not, the process is ended, if yes, the client is returned to update the file url, and then the client is enabled to carry out loading rendering.
Based on the same inventive concept, the present application further provides an application resource access control device, which can be used to implement the methods described in the foregoing embodiments, as described in the following embodiments. Because the principle of solving the problem by using the resource access control device is similar to that of the method, the implementation of the resource access control device can refer to the implementation of the method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of an application resource access control apparatus in the embodiment of the present invention. As shown in fig. 6, the application resource access control apparatus specifically includes: an application resource access request acquisition module 10, an application resource acquisition module 20, and an application resource feedback module 30.
An application resource access request acquisition module 10 acquires an application resource access request sent by a client;
the application resource obtaining module 20 obtains the application resources of the corresponding version from the application resources of the pre-stored multiple versions according to the application resource access request;
the application resource feedback module 30 feeds back the acquired application resource to the client, so that the client loads a page according to the application resource.
According to the application resource access control device provided by the invention, the server side prestores a plurality of versions of application resources, so that the client side can acquire page contents of historical versions, the problem of blank screen of a page of a mobile side accessed by the client side can be effectively solved, and the page loading and rendering speed of the client side is improved.
In an optional embodiment, the application resource access control apparatus may further include: the system comprises a resource forced updating request acquisition module, a version matching module and a latest resource feedback module.
The resource forced updating request acquisition module is used for acquiring a resource forced updating request sent by a client, wherein the forced updating request comprises a current resource version number;
the version matching module is used for matching the current resource version number with the prestored latest version number;
and if the matching fails, the latest resource feedback module feeds back the application resource corresponding to the latest version number to the client so as to enable the client to dynamically load the application resource.
In an optional embodiment, the application resource access control apparatus may further include: and the log recording module is used for recording the application resource access log.
In a further embodiment, the application resource access log comprises: version number, request URL, User-agent cache time and request time;
the application resource access control device further comprises: the system comprises a request time analysis module, a resource screening module, an expired resource list acquisition module and a resource cleaning module.
The request time analysis module is used for acquiring the last request time points of the application resources of the multiple versions according to the request time and the version number;
the resource screening module is used for acquiring an application resource list of which the current time point has no request record according to the last request time point and the current time point of the application resource request URL of each version;
the overdue resource list acquisition module is used for acquiring an overdue application resource list according to the application resource list and the User-agent cache time;
and the resource cleaning module is used for cleaning the application resources according to the overdue application resource list.
The apparatuses, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or implemented by a product with certain functions. A typical implementation device is an electronic device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the electronic device specifically includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the following steps when executing the program:
acquiring an application resource access request sent by a client;
acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request;
and feeding back the acquired application resources to the client so that the client loads a page according to the application resources.
As can be seen from the above description, the electronic device provided in the embodiment of the present invention may be used for controlling access to application resources, and by pre-storing multiple versions of application resources, the problem that a client accesses a white screen of a mobile page can be effectively solved, and the speed of loading and rendering the page by the client is increased.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 7, the electronic apparatus 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, an embodiment of the invention includes a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an application resource access request sent by a client;
acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request;
and feeding back the acquired application resources to the client so that the client loads a page according to the application resources.
As can be seen from the above description, the computer-readable storage medium provided in the embodiment of the present invention can be used for access control of application resources, and can effectively solve the problem that a client accesses a white screen of a mobile page by pre-storing multiple versions of application resources, and improve the page loading and rendering speed of the client.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An application resource access control method, comprising:
acquiring an application resource access request sent by a client;
acquiring application resources of corresponding versions from application resources of a plurality of pre-stored versions according to the application resource access request;
and feeding back the acquired application resources to the client so that the client loads a page according to the application resources.
2. The application resource access control method of claim 1, further comprising:
acquiring a resource forced updating request sent by a client, wherein the forced updating request comprises a current resource version number;
matching the current resource version number with a prestored latest version number;
and if the matching fails, feeding back the application resource corresponding to the latest version number to the client so as to enable the client to dynamically load the application resource.
3. The application resource access control method of claim 1, further comprising:
and recording an application resource access log.
4. The application resource access control method of claim 3, wherein the application resource access log comprises: version number, request URL, User-agent cache time and request time;
the application resource access control method further comprises the following steps:
acquiring the last request time points of the application resources of the multiple versions according to the request time and the version numbers;
acquiring an application resource list which has no request record at the current time point according to the last request time point and the current time point of the application resource request URL of each version;
acquiring an overdue application resource list according to the application resource list and the User-agent cache time;
and cleaning the application resources according to the expired application resource list.
5. An application resource access control apparatus, comprising:
the application resource access request acquisition module is used for acquiring an application resource access request sent by a client;
the application resource acquisition module is used for acquiring application resources of corresponding versions from prestored application resources of a plurality of versions according to the application resource access request;
and the application resource feedback module feeds the acquired application resources back to the client so that the client loads a page according to the application resources.
6. The application resource access control device according to claim 5, further comprising:
the resource forced updating request acquisition module is used for acquiring a resource forced updating request sent by a client, wherein the forced updating request comprises a current resource version number;
the version matching module is used for matching the current resource version number with the prestored latest version number;
and if the matching fails, the latest resource feedback module feeds back the application resource corresponding to the latest version number to the client so as to enable the client to dynamically load the application resource.
7. The application resource access control device according to claim 5, further comprising:
and the log recording module is used for recording the application resource access log.
8. The application resource access control apparatus of claim 7, wherein the application resource access log comprises: version number, request URL, User-agent cache time and request time;
the application resource access control device further comprises:
the request time analysis module is used for acquiring the last request time points of the application resources of the multiple versions according to the request time and the version number;
the resource screening module is used for acquiring an application resource list of which the current time point has no request record according to the last request time point and the current time point of the application resource request URL of each version;
the overdue resource list acquisition module is used for acquiring an overdue application resource list according to the application resource list and the User-agent cache time;
and the resource cleaning module is used for cleaning the application resources according to the overdue application resource list.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the application resource access control method according to any one of claims 1 to 4 are implemented when the program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the application resource access control method of any one of claims 1 to 4.
CN201911355281.1A 2019-12-25 2019-12-25 Application resource access control method and device Pending CN111159596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911355281.1A CN111159596A (en) 2019-12-25 2019-12-25 Application resource access control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911355281.1A CN111159596A (en) 2019-12-25 2019-12-25 Application resource access control method and device

Publications (1)

Publication Number Publication Date
CN111159596A true CN111159596A (en) 2020-05-15

Family

ID=70558098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911355281.1A Pending CN111159596A (en) 2019-12-25 2019-12-25 Application resource access control method and device

Country Status (1)

Country Link
CN (1) CN111159596A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685061A (en) * 2020-12-28 2021-04-20 北京达佳互联信息技术有限公司 Access method and device
CN114706611A (en) * 2022-04-19 2022-07-05 广域铭岛数字科技有限公司 Version management method, system, electronic device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119511A (en) * 2006-08-01 2008-02-06 华为技术有限公司 Method of obtaining resource entity and server and client terminal
CN105022750A (en) * 2014-04-28 2015-11-04 腾讯科技(北京)有限公司 Resource file loading method and apparatus
CN105760405A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment
CN108256014A (en) * 2018-01-05 2018-07-06 阿里巴巴集团控股有限公司 Page display method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119511A (en) * 2006-08-01 2008-02-06 华为技术有限公司 Method of obtaining resource entity and server and client terminal
CN105022750A (en) * 2014-04-28 2015-11-04 腾讯科技(北京)有限公司 Resource file loading method and apparatus
CN105760405A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment
CN108256014A (en) * 2018-01-05 2018-07-06 阿里巴巴集团控股有限公司 Page display method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐野: "QT平台体系与应用 QT5.5+核心方法、技巧与案例", 北京航空航天大学出版社, pages: 33 - 35 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685061A (en) * 2020-12-28 2021-04-20 北京达佳互联信息技术有限公司 Access method and device
CN114706611A (en) * 2022-04-19 2022-07-05 广域铭岛数字科技有限公司 Version management method, system, electronic device and medium

Similar Documents

Publication Publication Date Title
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN112749358A (en) Page rendering method and device, electronic equipment and storage medium
CN112559927B (en) Webpage loading method and device
CN109992406B (en) Picture request method, picture request response method and client
US9088462B2 (en) Common web accessible data store for client side page processing
CN108989362A (en) A kind for the treatment of method and apparatus of static resource
CN107807937B (en) Website SEO processing method, device and system
CN111159596A (en) Application resource access control method and device
CN112579928A (en) Page jump method, page jump device, computer equipment and computer readable storage medium
CN112256772A (en) Data service method, device and readable storage medium
CN112612982A (en) Webpage preloading method and device and computer equipment
CN106973081A (en) A kind of method and apparatus for issuing cloud resource
CN106649581B (en) Webpage repairing method and client
CN110874445A (en) Webpage loading method, client and business service center
CN111338928A (en) Chrome-based browser testing method and device
CN115470427A (en) Page loading method, device, equipment and storage medium
CN115658171A (en) Method and system for solving dynamic refreshing of java distributed application configuration in lightweight mode
CN114327453A (en) Page display method, device, equipment and storage medium
CN110233882B (en) Page resource access control method, device, system, storage medium and equipment
CN110413427B (en) Subscription data pulling method, device, equipment and storage medium
CN110162373B (en) Method and device for displaying chart in webpage
CN107220306B (en) Searching method and device
CN111796878A (en) Resource splitting and loading method and device applied to single-page application
CN107666497B (en) Data access method and device
CN110442825B (en) Method and apparatus for presenting information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220908

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515