Skip to content

Commit 6de0050

Browse files
cache requests with authorization
1 parent 6070ce3 commit 6de0050

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,6 @@ impl ProxyService {
621621
cachable = false;
622622
}
623623

624-
if part.headers.contains_key(hyper::header::AUTHORIZATION) {
625-
tracing::debug!("Not caching request with authorization header");
626-
cachable = false;
627-
}
628-
629624
let cache_path_on_disk = self.settings.cache_dir.join(&cache_key);
630625

631626
if cachable {

0 commit comments

Comments
 (0)