Skip to content

Commit

Permalink
Merge pull request #356 from jdno/pass-encoding-header
Browse files Browse the repository at this point in the history
Pass Accept-Encoding header to origin
  • Loading branch information
jdno authored Oct 23, 2023
2 parents 2f5a825 + 1dee626 commit ccf91e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terragrunt/modules/crates-io/cloudfront-webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ resource "aws_cloudfront_distribution" "webapp" {
// The crates.io website and API respond with different content based
// on what the client is accepting (i.e. HTML, JSON...)
"Accept",
// Pass the encoding header along so the origin can respond with
// compressed content if the client supports it.
"Accept-Encoding",
// The header needs to be forwarded so it can be stored in the logs and
// analyzed for abuse prevention and rate limiting purposes.
"Referer",
Expand Down

0 comments on commit ccf91e8

Please sign in to comment.