caf_platform/pipe_cdn

Processing pipeline for enabling CDN.

Properties:

 {appCDN: string=, appLocalName: string=, appSubdirCDN: string=}

where:

  • appCDN: a url prefix for your CDN, or undefined or '' to replace by an empty string. appLocalName: the local name of the app. If appCDN is not a falsy, it should not be a falsy. appSubdirCDN: an optional sub directory to cache invalidate a CDN.

When appCDN is https://cdn-2332.kxcdn.com, appLocalName is myApp, and appSubdirCDN is v1.01 occurrences in html and js files of json_rpc.CDN are replaced by https://cdn-2332.kxcdn.com/myApp/v1.01

Source:

Extends