Dynamic replacement method and device for static resource URL (Uniform Resource Locator) and computer program product

By building Proxy proxy objects and alternative static resource libraries, dynamically determine the optimal CDN resource domain name and replace the static resource URL, the problem of slow resource loading speed and low efficiency in traditional configuration methods is solved, and efficient CDN node selection and resource selection are achieved load.

CN119293356AActive Publication Date: 2025-01-10CHENGDU YUBUO TECH CO LTD
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN202411832702.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-01-10
Estimated Expiration
2044-12-13

Smart Images

  • Figure CN119293356A_ABST
    Figure CN119293356A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic replacement method and device for a static resource URL and a computer program product, a Proxy proxy object is created for the static resource URL through an innovative JavaScript proxy mechanism, then a get trap in the Proxy proxy object is utilized to determine an optimal CDN resource domain name from an alternative static resource library after a CDN resource access request is received, and then the optimal CDN resource domain name is replaced by the optimal CDN resource domain name in the alternative static resource library. On the basis of the optimal CDN resource domain name, an optimal static resource URL can be generated; and finally, replacing the original static resource URL by using the optimal static resource URL, thereby completing the dynamic replacement of the original static resource URL. By means of the design, compared with a traditional technology, manual intervention is not needed, the cost is reduced, the configuration efficiency is improved, meanwhile, dynamic selection of the optimal CDN node is achieved, the resource loading speed can be guaranteed, and then the operation performance is improved; therefore, the method is very suitable for large-scale application and popularization.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Method for acquiring and storing online video data

    CN106507181A

  • Online stream media playing method and stream media downloading and offline playing method

    CN106657162A

  • System and method for updating application clients using plurality of content delivery networks

    CN110383794A

  • Method for realizing automatic switching between single logging-in and subsystem logging-in based on es6

    CN114065186A

  • Resource acquisition method and device, equipment and storage medium

    CN115695580A