How to Setup CacheFly CDN for WordPress With W3 Total Cache : Origin Push

It is quite easy to set Origin Push for CacheFly CDN with W3 Total Cache. If you are already any CDN is configured via W3 Total Cache, deactivate (uncheck Enable under CDN and save all the settings) the current CDN to rewrite from W3 Total Cache from the General Settings of W3 Total Cache, then removpe the Nginx rules in case you are using Nginx, Apache2 rules for Apache2. Flush the cache.

Now, from the General Settings of W3 Total Cache, set Self Hosted/ File Transfer Upload under Origin Push and Save all settings. Now, go to the detailed options of CDN of W3 Total Cache Plugin, URL is like :

Vim

1

https://thecustomizewindows.com/wp-admin/admin.php?page=w3tc_cdn

Under General Settings, you possibly check all the fields except Import external media library attachments. Save all the settings. Under Configuration settings, check SSL support for HSTS/HTTPS websites, do not check for non-HTTPS websites. Under Configuration settings, in the Replace site's hostname with field, copy paste the sub-domain of CacheFly, which will be like username.cachecdn.net. Fill up the other fields, save all the settings. Now click Test. Test will pass. Upload the files via W3 Total Cache’s that webpage one by one. POP-up will appear and you will able to see the uploading. After checking one two files presence on CDN by opening on browser, again go to the General Settings of W3 Total Cache, Enable the CDN by checking the option and Saving all the settings.

Flush the cache of W3 Total Cache. Check with webpagetest.org or tools.pingdom.com whether your webpage is loading the static files from CDN.

How to Setup CacheFly CDN for WordPress With W3 Total Cache : Origin Pull

Advertisement

---

We recommend to use Origin Push for CacheFly CDN for initial try if you are not using custom subdomain. CacheFly technology possibly expects the files to be on one directory, not under sub-sub directory. It is for the advanced users. First, you need to set a subdomain like cdn.thecustomizewindows.com. You can set multiple. In case, your website is HSTS/HTTPS and you are not using a wildcard SSL certificate, use our guide to get free SSL certificate by Let’s Encrypt. CacheFly CDN uses the name Reverse Proxy for Origin Pull. There are needed setup on CacheFly CDN’s client area. Follow their guides for Reverse Proxy and Enable it.

Now, that subdomain like cdn.thecustomizewindows.com needs to be populated with the static files from your main server where WordPress is like thecustomizewindows.com. We use rsync

It is very easy to set CDN from WordPress With W3 Total Cache, when Origin Pull is used. If you are already any CDN is configured via W3 Total Cache, deactivate (uncheck Enable under CDN and save all the settings) the current CDN to rewrite from W3 Total Cache from the General Settings of W3 Total Cache, then removpe the Nginx rules in case you are using Nginx, Apache2 rules for Apache2. Flush the cache.

Now, from the General Settings of W3 Total Cache, set Generic Mirror under Origin Pull and Save all settings. Now, go to the detailed options of CDN of W3 Total Cache Plugin. Under General Settings, you possibly check all the fields except Import external media library attachments. Save all the settings. Under Configuration settings, check SSL support for HSTS/HTTPS websites, do not check for non-HTTPS websites. Under Configuration settings, in the Replace site's hostname with field, copy paste the sub-domain of CacheFly, which will be like username.cachecdn.net. Now click Test. Test will pass. Enable the CDN by checking the option and Saving all the settings. Flush the cache of W3 Total Cache. Check with webpagetest.org or tools.pingdom.com whether your webpage is loading the static files from CDN.

How to Setup CacheFly CDN for WordPress With W3 Total Cache : Other Plugins

There was a great CDN plugin before released by CatN CDN. They have discontinued the plugin. Repo is still available on GitHub :

Vim

1

https://github.com/WDGDC/CDN-Sync-Tool/releases

As far we can remember, that plugin was good in version 1. There was some problem after a version of that CDN Sync Tool. Unless there is any reason, it is better to avoid lesser used plugins. For Origin Pull, initial work is more and we suggest to use KeyCDN for Origin Pull. They at this moment has easy setup.