Programmable edge logic

Run delivery logic at the edge.

Control headers, URLs, routing, authentication, access and responses – without changing your origin application.

Free developer accounts available – and included across CacheFly packages.

EdgeControl JavaScript code running delivery logic at the CDN edge

Built by CacheFly — the specialist CDN delivering high-volume, high-performance content since 2002.

Purpose-built for CDN control

Make delivery changes without changing your application.

EdgeControl runs lightweight JavaScript on the request and response path at the CacheFly edge. Use it to customize how traffic is handled before a request reaches your origin, or a response reaches the end user.

Diagram showing requests flowing from an end user through the CacheFly edge, where a script runs, to an unchanged origin, with responses returning along the same path
Illustration representing control over requests and content delivery

Control

Block, allow, redirect, rewrite and authenticate requests directly at the edge.

Illustration representing fast content delivery and improved performance

Performance

Handle lightweight delivery logic close to the end user, without an unnecessary origin round-trip.

Illustration representing flexible EdgeControl configuration

Flexibility

Start from an example, write your own script, or use your preferred coding assistant to adapt the EdgeControl documentation.

What you can control

Handle common delivery requirements at the edge.

Headers

Add, remove or update request and response headers.

URL & path rewrites

Redirect requests or rewrite paths without changing your origin application.

Access control

Allow or deny requests based on request attributes, tokens, paths or other conditions.

Content routing

Route requests based on geography, URL, headers or other request information.

Authentication

Validate authentication information before traffic reaches your origin.

Edge responses

Return responses directly from the edge when a trip to origin is unnecessary.

Familiar JavaScript patterns

Build without learning a general-purpose edge platform.

EdgeControl is designed for focused CDN delivery logic — not general application compute.

Moving from another CDN?

Recreate common header, routing, redirect and access-control workflows using familiar JavaScript patterns.

Using an AI coding assistant?

Give the EdgeControl documentation and examples to ChatGPT, Claude or your preferred coding assistant to help draft or adapt a script. Review and test generated code before using it with production traffic.

How teams use EdgeControl

Solve delivery problems before they reach your infrastructure.

Streaming platforms

Apply geographic access rules, validate tokens and modify request or response behavior for streaming workflows.

Game studios

Authenticate requests, route downloads and control access during launches, updates and periods of high demand.

Live event broadcasters

Redirect traffic based on geography, control access and return edge responses when appropriate.

Ad-tech & e-commerce

Modify headers, route requests, run cookie-based delivery logic and block unauthorized traffic before it reaches the backend.

What an EdgeControl script looks like

Start with a working pattern.

Each script uses a handler function to inspect or modify a request or response and return the result. Use these as a starting point, then test on a development service before applying to production traffic.

Try it yourself — spin up a free account and deploy your first script.

Getting started

Test your first script in three steps.

EdgeControl is managed through the CacheFly portal and doesn’t require a change to your origin application.

1

Create an account

Create a free developer account, or sign in to your existing CacheFly account.

2

Create your script

Start with an EdgeControl example, write your own JavaScript, or use a coding assistant to help draft it from the documentation.

3

Test and activate

Attach the script to a development or test service, confirm the behavior, then activate it for the appropriate traffic.

Use it for

Header changes

URL & path rewrites

Access control

Geographic routing

CORS handling

Edge responses

Packaging

Included with your CacheFly package.

Build and test with a free developer account, and use EdgeControl across CacheFly packages. Allowances, script limits and production availability vary by package.

Free Developer

Free

Build and test EdgeControl scripts with a free developer account.

Adoption

Create and test lightweight delivery logic within the Adoption package allowances.

Production

Popular

Use EdgeControl with live production traffic and higher package allowances.

Governance

Use EdgeControl with enterprise packaging, governance and support options.

Allowances and production availability vary by CacheFly package.

Start with a specific delivery problem.

Not sure where to start? The CacheFly team can help you confirm whether EdgeControl is a fit, review your proposed use case, and point you to the right examples and documentation.

  • Rewriting a URL or path
  • Adding or removing a header
  • Applying geographic access rules
  • Handling authentication information
  • Redirecting specific traffic
  • Returning a response from the edge

Frequently asked questions

EdgeControl lets you run lightweight JavaScript logic at the CacheFly CDN edge to control how requests and responses behave — headers, URLs, routing, access control, authentication and edge responses — without changing your origin application.

Each EdgeControl script uses a handler function that inspects or modifies a request or response and returns the result. Your logic runs at the edge on both the request path (before traffic reaches your origin) and the response path (before it reaches the end user).

Common uses include changing request and response headers, rewriting URLs and paths, allowing or denying requests, routing by geography or other request attributes, validating authentication before traffic reaches your origin, and returning responses directly from the edge

No. EdgeControl is managed through the CacheFly portal and handles delivery logic at the edge, so you can make changes without modifying your origin application.

EdgeControl is purpose-built for CDN delivery logic, not general application compute. That focus keeps scripts lightweight and fast on the request and response path, without adding an unnecessary origin round-trip.

Yes. You can give the EdgeControl documentation and examples to Claude, ChatGPT or your preferred coding assistant to help draft or adapt a script. Always review and test generated code on a development or test service before applying it to production traffic.

Yes. Common header, routing, redirect and access-control workflows can be recreated in EdgeControl using familiar JavaScript patterns, so you don’t have to learn a new general-purpose edge platform.

You can build and test EdgeControl scripts with a free CacheFly developer account, and EdgeControl is available across CacheFly packages. Allowances, script limits and production availability vary by package.

Create a free developer account or sign in to your CacheFly account, create a script from an example or with a coding assistant, then attach it to a development or test service to confirm the behavior before activating it for production traffic.

Start building at the edge.

Create a free developer account and test your first EdgeControl script.

Start building at the edge.

Create a free developer account and test your first EdgeControl script.

You’re in Good Company at CacheFly