Find the desired product help

CDN Settings

 

The settings page lets you configure how website data is cached and rendered by the CDN.

  • Open the cWatch dashboard
  • Choose the target website from the drop-down at top-left
  • Click 'CDN' > 'Settings' > 'CDN'



Click the following links for help with each box on the settings screen:


Site Settings

  • Origin IP - The website’s IP address. The CDN will collect the site’s content from this IP.
  • Enter the site’s IP then click the ‘+’ button. You can add multiple origin addresses. The CDN will load balance from the list of origins.
  • Custom Host Header - Enter the domain name of the origin website. For example, simply enter www.yourwebsite.com
Background - If you don’t complete the custom host header field, then the CDN will simply retrieve the default website at the origin IP. While this is OK if there is only one site hosted in the IP, it can be problematic if the IP hosts multiple sites. By specifying your domain, you tell the CDN exactly which website to collect.
  • Origin Protocol - Select whether is hosted over HTTP or HTTPS. Choose the https or http version of your URL as appropriate.
  • Port - The port number on the origin that the CDN should connect to.
Click ‘Update’ to save your changes.


Edge Rules




  • Force HTTPS Connections - Ensures your site is only ever served over a secure, HTTPS, connection. Any requests made over HTTP will be converted to HTTPS. Make sure that you have uploaded your SSL certificate to CDN edge servers. See SSL Configuration for help to do this.


Cache Settings


 

  • Use Stale – Enable to serve cached-but-expired content to your visitors if your site is not-reachable for 24 hours or more. This is useful to ensure you keep a web-presence if your server is hit by problems.
  • Query String - Web-pages with a query string (e.g.'?q=something') will be cached as separate files. CDN updates the cached files whenever the original pages are updated.
  • Ignore Cache Control – Enable this to invalidate cache settings on the origin. Selecting this option will automatically disable ‘Use Stale’ setting above.
  • Set Default Cache Time - Define how long content fetched from your web servers should remain in the CDN cache. Cached content is used to accelerate site loading times for your visitors.
The CDN will collect refreshed content from your site when this period expires.
  • Set Default Cache Time for File Types – Define how long files should be cached before they are forced to request a new copy from your origin.
  • Select the file type from the first drop-down and set the cache time in the second. Click ‘+’ to add the file type. Repeat to add more file types.

Click ‘Update’ to save your changes.


Purge Files



 

  • Purge All Files - Manually remove all cached files so the CDN is forced to check your website the next time the files are requested.
  • Purge Individual Files - Remove specific files from the cache so that the CDN is forced to check your website the next time these files are requested.
  • Enter the URI of the file in the box then click the blue '+' button
  • Repeat the process to add more files
  • Click 'Purge'


Quick Configuration


Tell cWatch the content management system (CMS) used to develop your site. Doing so helps accelerate CDN setup and performance. While cWatch supports all content management systems, quick configuration currently only supports Joomla and WordPress.



  • Select a CMS type and click the ‘+’ button. Repeat to add more types
  • Click ‘Update’ to save your settings