Uploadcare delivers your files with a powerful CDN. It implies that you need to upload files to Uploadcare storage first. If you want to use our CDN without explicitly uploading files to Uploadcare, this is the feature you want to use. Proxy allows you to integrate Uploadcare into your solution with only minor URL modifications:
Proxy will upload files to your Uploadcare storage as soon as they’re requested. It will also allow you to use Uploadcare CDN features.
Primarily, Proxy is used to deliver images along with image transformations. You can deliver other files as well. Your original file URLs will still work.
Note: Try out Adaptive Delivery which adapts images to any device automatically with a simple setup. Use Proxy for a more manual approach.
Open your Uploadcare project's Dashboard and select Delivery from the main menu on the left. Click Connect for Proxy.
Specify the domain names that host your files. The Proxy will recognize these domains and deliver files successfully. You can add one or more domains in the Proxy dialog window.
By default, Uploadcare creates a proxy endpoint for every project automatically:
As you can see, a default subdomain for the endpoint is your project's Public key. All links start with this URL, so you can change it to something readable. Custom endpoint examples:
- CNAME or subdomain endpoint will look like:
- A record or domain endpoint will look like:
Here's how to use Proxy after it's set up.
Add the Proxy prefix that contains your Endpoint to a file URL on the allowed domain:
image.jpg will be delivered via Uploadcare CDN.
The original file will remain at its original place, so that older references
will work as well.
Now you can add prefixes to all images using your IDE or text editing tool. Apply CDN operations when needed.
This CDN operation will resize
500 px in width by adding
As a result,
image.jpg will be resized and delivered with Uploadcare CDN.
You can also optimize your responsive image handling workflow and free up some storage space by deleting image versions in different sizes for adaptive layouts. Uploadcare resizes images on the fly and you don't have to save all versions beforehand. Here's how to generate multires images:
1260 pixels in width:760 pixels in width: 512 pixels in width:
Find out more on implementing responsive images down below.
Here's a list of errors you might get when using Proxy:
You did not register a Proxy domain for your sites by dropping us a line at email@example.com.
You tried fetching a file from a domain that was not allowed. Check settings or contact us to add the domain as allowed for your account.
Your prefix was added to an invalid URL. Consider checking that URL.
You tried fetching an unreachable file. Consider checking its URL.
A problem occurred when trying to upload a file to our storage. Try again later and if it didn't help you always can contact us.
We picked a collection of the most popular Proxy use cases. These cases are about optimizing traffic, improving load time, and handling your assets the way you need.
After you set up delivery with Proxy, there's just one step to build a
responsive design. Responsive images require that you prepare images in
different sizes and later list them in the
srcset attribute or the
Check out our blog article on Image Transformations that covers responsive techniques.
Uploadcare Proxy fetches your assets and delivers them via Uploadcare CDN. That alone improves load time of your assets because they get served from a CDN node best for your client’s location.
When handling media, Proxy provides further load time improvement by letting you cut file sizes at no visual quality loss. With images, that can be done via our Image Transformations feature.
Specifically, take a look at the following on-the-fly operations:
format, convert images to WebP, PNG or JPEG. It's recommended to use
quality, adjust image quality.
resize, adjust image size.
This set of tools can help accelerate your images up to 9x.
You can compare page load time and traffic optimization with Uploadcare CDN and without. Use tools like Chrome DevTools for local tests. Play around with the image quality and find a sweet spot for the best visual traffic compression results.
Note that the first request for each media file over Proxy URL will copy it to Uploadcare CDN. Therefore, there won't be a performance improvement yet. However, once it gets copied to our servers, all subsequent requests will fetch the file from the closest CDN node.
While accelerating your media improves your conversions, using less bandwidth cuts your traffic costs.
This feature is free and available across all plans. It is important to note that proxy uses your project upload units and storage limits since files are fetched and saved first before they are available on Uploadcare's CDN.