From 6de0050f1385101a2f767a5a3370e58818c9de53 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Sun, 13 Oct 2024 23:55:15 +0200 Subject: [PATCH] cache requests with authorization --- src/main.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1be552f..ff3b89f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -621,11 +621,6 @@ impl ProxyService { cachable = false; } - if part.headers.contains_key(hyper::header::AUTHORIZATION) { - tracing::debug!("Not caching request with authorization header"); - cachable = false; - } - let cache_path_on_disk = self.settings.cache_dir.join(&cache_key); if cachable {