Skip to content

Commit

Permalink
cache requests with authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Oct 13, 2024
1 parent 6070ce3 commit 6de0050
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6de0050

Please sign in to comment.