INTEGRITY Cloudflare Docs

Head Requests and Set-Cookie Headers

This page describes how Cloudflare's cache system behaves in interaction with:

Interaction of HEAD requests with Cache

Cloudflare converts HEAD requests to GET requests for cacheable requests.

When you make a HEAD request for a cacheable resource and Cloudflare does not have that resource in the edge cache, a cache miss happens. Cloudflare will send a GET request to your origin, cache the full response and return the response headers only. Make sure the origin server is set up to handle GET requests, even if only HEAD requests are expected, so that compatibility with this behavior is ensured.

For non-cacheable requests, Set-Cookie is always preserved. For cacheable requests, there are three possible behaviors: