Please Read

This plugin uses regular expression (RegEx) to manipulate HTML and may have the following affect on your site:

  1. It may not work in all cases and may break your HTML. You can enable or disable the plugin from the settings page if it does not work for you.
  2. It does not work for dynamically loaded content or static assets with absolute reference inside of another asset (css,js,html) file.
  3. It may increase your Time To First Byte (TTFB).

Therefore, this plugin should only be use with Pull-Zone type of CDN where content must be available at origin. We recommend that you use Concrete5 FlySystem driver to integrate into S3 or Push-Zone CDN for remote FTP. For popular sites, this plugin help improve/alleviate traffic congestion by serving static content from Offsite/CDN.

Note: you may need to update the default path above to include your subdirectory. If your root path is example.com/subdirectory, then it should be: subdirectory/application/files/, subdirectory/concrete/, subdirectory/fundamental/, subdirectory/download_file/, subdirectory/packages/.

Full source code is available on GitHub at https://github.com/niiknow/concretecms-cdn.