Fix CDN enabling, improve syntax