Resource Description Link Rewriting for External CDN Acceleration
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing content delivery networks (CDNs) cannot accelerate external links in resource description files, leading to slower page loading speeds due to the inability to redirect domain names of external resources.
Innovation Solution
An intermediate server rewrites external links in resource description files to internal links, allowing the CDN to accelerate both internal and external links by forwarding requests through an origin server and parsing actual external links for resource acquisition.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If CDN redirects DNS of page to edge node for acceleration, then internal link access speed is improved, but external link access speed remains slow because CDN cannot redirect external domain names
Solution Approach 1:
The patent introduces an intermediate server as a mediator between the CDN and external resources. This intermediate server intercepts resource description files, rewrites external links to point to the intermediate server, and then retrieves original external resources. This allows the CDN infrastructure to handle external link acceleration indirectly through the intermediate server, which acts as a bridge enabling CDN acceleration capabilities to extend to external links without requiring changes to external domain name systems.
Solution Approach 2:
The patent segments the link acceleration function into two parts: internal links are handled directly by CDN DNS redirection, while external links are handled through the intermediate server's link rewriting mechanism. This segmentation allows each type of link to be processed through the most appropriate method, with the intermediate server specifically addressing the external link acceleration gap.
2Productivity
If external links are left unrewritten in resource description files, then link structure remains simple, but page loading speed deteriorates because external links cannot be accelerated by CDN
Solution Approach 1:
The patent applies preliminary action by rewriting external links in advance within the resource description file before the client downloads the file. The intermediate server performs this rewriting proactively, converting external link URLs to point to itself. This preliminary transformation ensures that subsequent resource requests for external links are automatically routed through the intermediate server, enabling CDN acceleration without requiring real-time processing or client-side modifications.
Solution Approach 2:
The intermediate server serves as an intermediary that handles the complexity of link rewriting and resource retrieval, shielding the client from these complexities. The client simply receives rewritten links and makes normal requests, while the intermediate server manages the sophisticated processes of link analysis, rewriting, and original resource fetching in the background.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
The present disclosure provides a method for processing a resource description file, a page resource acquisition method and an intermediate server. The method for processing a resource description file includes: receiving an access request directed to a target page from a client terminal, and receiving the resource description file fed back by an origin server with respect to the access request after transmitting the access request to the origin server; identifying one or more resource links in the resource description file and determining whether the one or more resource links include one or more external links; if the one or more resource links include the one or more external links, rewriting an external link of the one or more resource links to an internal link and replacing the external link in the resource description file with a corresponding internal link formed by rewriting the external link; and feeding back a rewritten resource description file to the client terminal, such that the client terminal acquires resource of the target page according to the rewritten resource description file. The technical solution of the present disclosure can improve loading speed of the page.