Hi, I'm looking for some guidance on Accept-Language and Accept-Encoding header normalization to avoid high cache key cardinality.
For encoding, I was thinking of something like:
map {header.Accept-Encoding} {accept} {
~br br
~gzip gzip
default *
}
request_header Accept-Encoding {accept}
And for Accept-Language I was looking at https://github.com/simia-tech/caddy-locale but it doesn't seem to work with caddy 2.
Do you have recommendations? Is this even necessary?
Reactions are currently unavailable
Hi, I'm looking for some guidance on Accept-Language and Accept-Encoding header normalization to avoid high cache key cardinality.
For encoding, I was thinking of something like:
map {header.Accept-Encoding} {accept} { ~br br ~gzip gzip default * } request_header Accept-Encoding {accept}And for Accept-Language I was looking at https://github.com/simia-tech/caddy-locale but it doesn't seem to work with caddy 2.
Do you have recommendations? Is this even necessary?