Exercise 4: Configuring a Website to Leverage the CDN
This exercise will continue the previous exercise where you provisioned a CDN profile and endpoint. Now, files from the storage account should be cached by the CDN. Now it is time to prepare and upload your HTML page to test the CDN in action. Next, you need to replace the links to your CDN endpoint by running commands from the script. Run the command from the Bash console to upload an HTML page to the static website on the storage account you built before. You can open a generated link to observe the caching performance. You can also compare it with the HTML file pointed to the storage account from the previous demo. The performance increase should be visible. Please note that files can be cached on the browser side and, for ideal comparison, you should clear the cache from the F12 Developer Tool.
The next task is providing custom TTL policies for content. You will set TTL on the JavaScript file on the origin level by using...