Testing on multiple environments

Now that you have successfully configured the origin and URL-endpoint, it's time to test It is recommended that you test on your staging or UAT environment before making changes in the live production application.
You should create a separate URL-endpoint for dev, stating/UAT, and production environment. This is critical for maintaining separate caches on CDN and

Example setup

Suppose, you are running a website, and you have three different environments:
  1. 1.
    Dev - accessible over (via host file entry) or http://localhost:8000/
  2. 2.
    Staging - accessible over
  3. 3.
    Production live website -
We will add three origins in the dashboard for these three environments. And configure three separate endpoints to access these origins.

Testing on the local machine

Please note that your origin must be accessible over the internet for to fetch images. You can use a tool like ngrok to make your dev site accessible over the internet.
Start ngrok in a command prompt with the same port number that you have configured for your server (e.g., ./ngrok http 8000). You should see information about your tunnel sessions such as status, expiration, and version. Take note of the Forwarding addresses (e.g., -> localhost:8000) as this is required while adding the origin for dev.