aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src
diff options
context:
space:
mode:
authorEdward Wang <[email protected]>2024-07-23 16:51:06 -0700
committerYuchen Wu <[email protected]>2024-08-30 11:18:18 -0700
commit4f45792d801b237ee80cc63941a71ea5840bdf3c (patch)
tree3c840bfa390ede9ee1ca4929e183ae5566182b2a /pingora-proxy/src
parent1b9e8eead1ed8e6d858a48e7a4c06e4a2aff3d41 (diff)
downloadpingora-4f45792d801b237ee80cc63941a71ea5840bdf3c.tar.gz
pingora-4f45792d801b237ee80cc63941a71ea5840bdf3c.zip
Weaken or remove etags when downstream compression applies
Allow this as an adjustable setting to preserve etag when (de)compressing. The default is to weaken etags whenever a compression module applies.
Diffstat (limited to 'pingora-proxy/src')
-rw-r--r--pingora-proxy/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/pingora-proxy/src/lib.rs b/pingora-proxy/src/lib.rs
index eebf65d..f872d82 100644
--- a/pingora-proxy/src/lib.rs
+++ b/pingora-proxy/src/lib.rs
@@ -313,7 +313,8 @@ impl Session {
Session {
downstream_session: downstream_session.into(),
cache: HttpCache::new(),
- upstream_compression: ResponseCompressionCtx::new(0, false), // disable both
+ // disable both upstream and downstream compression
+ upstream_compression: ResponseCompressionCtx::new(0, false, false),
ignore_downstream_range: false,
subrequest_ctx: None,
downstream_modules_ctx: downstream_modules.build_ctx(),