-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(proxy): Allow to remove the proxy cache headers (#10445)
The following headers: * X-Cache-Status * X-Cache-Key * Age are now set only if the header kong-debug is set to 1 And they are removed from the cache value Keep previous behavior with default configuration. Debug header allows to get all info, each header has a configuration field to be or not into the response
- Loading branch information
Showing
7 changed files
with
288 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,5 +92,8 @@ return { | |
rate_limiting = { | ||
"sync_rate", | ||
}, | ||
proxy_cache = { | ||
"response_headers", | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5e09745
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:5e09745add686a32359201903d12f62138d51489
Artifacts available https://github.com/Kong/kong/actions/runs/5795164055