Get started with the cache

Turn the edge cache on for a zone or one name, check a static file goes from MISS to HIT, and add a rule for HTML if you want it.

On this page

Before you begin

  • A zone with at least one proxied name. See DNS.
  • The tech or admin role.

Turn on the cache

  1. Open the zone and go to Caching.
  2. Turn on Cache at the edge. Use Scope to apply it to the whole domain or a single name.
  3. Select Save changes and give a reason.

The change reaches the edge nodes with their next configuration, usually within seconds.

Check that it works

Request a static file twice:

curl -sI https://www.example.com/app.css | grep -i -E 'x-cache-status|cache-status|age'

The first answer is a MISS (fetched from the origin and stored); the next ones from the same edge node are HIT with an Age:

x-cache-status: HIT
cache-status: OpenWAF; hit
age: 42

An HTML page answers DYNAMIC: HTML isn't cached by default. See Cache status headers for every value.

Next steps

Last updated:

↑↓ to navigate↵ to openesc to close