This version of the Cloudflare Workers documentation is deprecated. Visit the new documentation.

VCL to Workers tutorials

If you are currently using a CDN that is configured using VCL, please find the tutorials below on how to convert your VCL configuration into Workers.

Authenticating Before Returning a Request
Conditionally Changing a URL
Controlling the Cache
Delivering Custom Responses
Delivering Different Content to Different Devices
Inspecting Visitor Location