Maximum HTTP Response Header size?

cdn
#1

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

0 Likes

#2

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”.

0 Likes

#3

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

0 Likes

#4

I don’t know the answer, but this is relevant in general for what you’re trying to do: https://maxchadwick.xyz/blog/http-response-header-size-limits (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 …

0 Likes

closed #5

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

0 Likes