We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
When should I use partial site integration? How do I implement partial site integration?
Environment
OnApp CDN
Answer
Partial site integration is good if you only have a few static elements to display to users.
The most direct implementation is to change the URL links of the static files in the website HTML file to use the CDN URL. For example:
(1) "a.jpg" is used to deliver the file with a non CDN URL link: www.example.com/a.jpg".
(2) You create a CDN resource with CDN hostname: cdn.example.com, origin:www.example.com
(3) Setup the CNAME of cdn.example.com to xxx.r.worldcdn.net (provided in the instruction page)
(4) Edit the website HTML file and change the URL link for "a.jpg" from "www.example.com/a.jpg" to "cdn.example.com/a.jpg"
Additional Info
If the site uses primarily static content, you can use full site integration.