Maximum HTTP Response Header size?

Hi,

We’re aware that Cloudflare has max cache sizes and max upload file sizes.

However is there a max response header size?

Let’s just say we have a content security policy which equates to 500MB and is transferred in the header of every page request - will this ever become a problem on Cloudflare, or will it always without fail return the full response and full header no matter how large it gets?

Thanks

A header value worth 500 megabyte of data? :astonished:

Not that I would ever have tried that but considering Cloudflare limits regular uploads I would not be surprised if that simply fails.

No offence, but you are doing something wrong here. Regardless of Cloudflare or not, I would strongly urge you to reconsider that “approach”.

I never said we doing this - it was a scenario example to help visualise the question

I don’t know the answer, but this is relevant in general for what you’re trying to do: HTTP Response Header Size Limits | Max Chadwick (this is NOT Cloudflare specific).

In short: Even if the specification doesn’t limit you, many middlewares (CDNs or not…) - might… and in general it looks like the industry magic number is 8K …

This topic was automatically closed after 30 days. New replies are no longer allowed.