CrawlClick edge headers and caching (X-Crawlclick, no-store)
A response served through CrawlClick carries X-Crawlclick served and Cache-Control private, no-store, and your origin sees a plain GET from the CrawlClick proxy rather than the crawler's own request.
Status: Live
Publishers usually meet the edge through headers: in their origin logs, in a CDN cache report, or in a curl response. This page lists the headers on each hop of the CrawlClick path, as the Worker (edge/cloudflare/worker.js) and the proxy set them. Requests on the origin path are not touched at all. The Worker passes them on with fetch(request) and returns your origin’s response as it is. Which requests take which path is on Request routing.
What does the Worker send to the CrawlClick proxy?
The Worker copies the incoming request headers and then overwrites every value that carries trust, so nothing a caller supplies can stand in for them:
| Header | Value |
|---|---|
X-Forwarded-For |
Removed. A caller-supplied value is never forwarded. |
X-Crawlclick-Client-IP |
The client address from Cloudflare’s CF-Connecting-IP, always overwritten by the Worker |
X-Crawlclick-Edge-Secret |
A platform secret held by the Worker. Publishers never see it. |
X-Forwarded-Host |
Your public host, from the request URL |
X-Forwarded-Proto |
https or http, from the request URL |
X-Crawlclick-Publisher |
Your publisher ID, from the custom hostname’s metadata |
Authorization |
Bearer followed by your site’s edge token, from the same metadata |
The proxy refuses a request unless the platform secret matches, the bearer token matches the host, and the publisher ID matches the token’s site. It reads the client IP only after those checks pass. It then verifies the crawler from the client IP, the User-Agent, and the Signature, Signature-Input and Signature-Agent headers when present. See Verification tiers.
What does my origin see on the CrawlClick path?
The proxy does not forward the crawler’s request. It makes its own HTTPS request to the origin hostname you registered (see Verify your domain), over HTTP/1.1, from CrawlClick’s network:
GET /the/requested/path?and=query HTTP/1.1
Host: origin.example.com
User-Agent: crawlclick/0.1 (+https://www.crawlclick.com/)
Accept: text/html,application/xhtml+xml
Accept-Encoding: identity
Connection: close
The path and query string are the crawler’s. The User-Agent shown is the proxy’s default. No other request header reaches your origin: not the crawler’s user agent, address, cookies or Authorization, and not conditional headers such as If-None-Match. In practice:
- Your origin logs show CrawlClick’s fetcher, not the AI crawler. Use the reports in the CrawlClick console to see which engines crawled.
- A crawler on this path always gets a full response. It never gets a
304, because the conditional headers that would produce one are not sent. - Origin rules that block unknown user agents or non-browser clients may refuse the proxy. If they do, the request falls back to your origin directly. See Failure behaviour.
Which origin response headers reach the crawler?
The proxy writes its own Content-Length and Connection headers. It relays your Content-Type and Location, and these headers when your origin sends them:
Cache-Control, Content-Disposition, Content-Encoding, Content-Language, ETag, Expires, Last-Modified, Link, Retry-After, Set-Cookie, Vary, X-Robots-Tag.
Any other origin header is dropped. X-Robots-Tag is relayed so that a per-response noai or noindex directive still reaches the crawler. When the proxy inserts a sponsored block, it also drops ETag, Last-Modified and Content-Encoding, because they describe bytes that are no longer the bytes served. If the origin sent no Content-Type and the page was modified, the proxy sets text/html; charset=utf-8.
Which headers does the Worker add to a CrawlClick-served response?
When the proxy answers with a status below 400, the Worker returns that response with two headers set:
Cache-Control: private, no-store
X-Crawlclick: served
Cache-Control replaces whatever your origin sent. X-Crawlclick: served means the response came through the proxy. It does not mean the crawler was verified, and it does not mean a block was inserted. A spoofed GPTBot user agent from a home connection also gets X-Crawlclick: served, along with your unchanged page. A response with no X-Crawlclick header came from your origin, either because the request was not routed or because the CrawlClick path failed and fell back.
Why is a CrawlClick-served page never cached?
A page on the CrawlClick path may carry a sponsored block chosen for one crawler at one moment. If a shared cache stored it, a later reader or a different crawler could be served that copy. private, no-store stops Cloudflare and any downstream cache from storing it. The same rule covers unchanged pages on this path, such as a referred reader’s page, so no caching decision depends on whether a block was inserted.
Redirects are relayed, not followed. The Worker calls the proxy with redirect: 'manual' and the proxy does not follow Location. A 301 from your origin reaches the crawler as a 301 with your Location, plus the two headers above.