Skip to content

Header normalization #117

Open
Open
@cdaguerre

Description

@cdaguerre

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions