CDN demo · page served by the App Gateway
Page from the cluster, picture and script from the CDN
This HTML came through the App Gateway (WAF) to the nginx pod in AKS. The picture below and the script that fills in the table come from Azure Front Door: https://fde-clbin-stg-gpa7fvhwdxdrgwha.z03.azurefd.net
JavaScript from the CDN has not loaded (yet). If this stays red, check https://fde-clbin-stg-gpa7fvhwdxdrgwha.z03.azurefd.net/js/demo.js
| Part | Came from | Path | Load time |
|---|
Speed test: the same 4 MB picture, without and with the CDN
Each run downloads img/speedtest.png twice, skipping your browser's cache both times: once straight from the storage account in the Azure region (no CDN), once through Front Door from the edge location near you. Press the button as often as you like.
| Run | Without CDN | With CDN | Faster by |
|---|
Run 1 on the CDN can be slower: the first request at a new edge location fetches the file from storage once, every later one is served from the edge cache.
Reload the page: the picture and script now come from the Front Door edge cache near you, so their load time drops.