AI AGENTS

Cloudflare Origin Cache-Header Auditor

Crawls high-traffic origin responses, flags assets whose Cache-Control headers prevent edge caching, and files a Linear ticket per fixable header with the recommended directive.

CategoryAI Agents
Enginepaperclip
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSchedule launches the audit
  • ActionPull highest-traffic paths from analyticsCloudflareCloudflare
  • ActionFetch origin responses and read headersHTTP webhook
  • LogicFilter to cache-blocking headers on static content
  • LogicMap findings to recommended directives
  • OutputFile a Linear ticket per fixable assetLinearLinear

What it does

Many cache misses trace back to the origin sending no-cache, no-store, or missing Cache-Control headers on content that is actually static. This workflow takes your top-traffic paths from Cloudflare analytics, fetches each origin response, inspects the caching headers, and identifies assets that should be cacheable but aren't. For every fixable case it files a Linear ticket naming the URL, the current header, and the recommended directive for the backend team.

When to use it

Use it when edge cache rules look correct but hit ratio is still poor — the culprit is usually origin headers, not Cloudflare config. A good periodic hygiene check for backend caching.

How it works

  1. 1A schedule launches the audit.
  2. 2The workflow pulls the highest-traffic paths from Cloudflare analytics.
  3. 3It fetches each origin response via HTTP and reads the Cache-Control and related headers.
  4. 4A branch filters to responses where headers block caching of otherwise-static content.
  5. 5It maps each finding to a recommended header directive.
  6. 6It files one Linear ticket per fixable asset for the backend team.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  2. 2
    Connect HTTP webhookTrigger any URL on agent actions.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.