Magento 2 still wants static and media on a CDN; the admin paths changed.
1. Pull zone + EdgeSSL
Same as Magento 1: origin is the store base URL, CNAME cdn.store.com, HTTPS on the zone.
2. Admin configuration
- Stores → Configuration → General → Web.
- Base URL for Static View Files and Base URL for User Media Files →
https://cdn.store.com/(unsecure and secure scopes). bin/magento cache:flush- Purge the NetDNA zone.
3. Deploy static content
bin/magento setup:static-content:deploy # then purge CDN so old hashed files do not linger
Hook the purge into CI with the deploy purge recipe. Magento 1 remains at magento-plugin.
Developers