Add Shopify as an Origin
- Go to your Distribution and select Origins from left sidebar.
-
Select Hostname and Enter:
- Origin Name: Origin-Shopify
- Domain / IP:
https://cdn.shopify.com
-
Save the Origin.

Add Shopify as an Origin
-
Your Tenbyte CDN domain can now fetch and optimize Shopify-hosted images.

Domain Distribution URL
Add Tenbyte Settings to Shopify (settings_schema.json)
- In Shopify Admin go to Online Store → Themes, locate the theme, open the
“…”menu, and select Edit code. This allows users to enter the Delivery Endpoint. - Open the Config folder, select
settings_schema.json, scroll to the bottom, and paste the code below as the final section of the file. Save your changes when done.
settings_schema.json
Create tenbyte.liquid file
- Create a new file named
tenbyte.liquidinside the Snippets directory. Paste the code below into the file and save it.
tenbyte.liquid
Enable Tenbyte
- Go to Online Store → Themes → Customize. In the left panel, open the Tenbyte section under General settings and turn it on. Then fill in the two fields:
- Default URL endpoint: https://example.tenbytecdn.com
- Shopify CDN domain: //cdn2.shopify.com or //cdn.shopify.com
Edit your theme files
- Next, you’ll update the theme files that handle image output. These are the templates where Shopify renders your product, collection, and banner images.
- The exact locations may differ by theme, but the approach is the same. Locate every spot where an image is rendered and replace that output with the Tenbyte Liquid tag you created earlier. Here’s an example:
- Here’s another example of generating a responsive image using Tenbyte’s quickly
srcsetandsizesattributes: