From 5357d0edaec7cd081426056124c651b84fd21016 Mon Sep 17 00:00:00 2001 From: Tim de Jager Date: Fri, 29 Sep 2023 12:26:52 +0200 Subject: [PATCH] feat: don't cache metadata cause we are storing it already (#28) Don't cache the http as we also cache it in the file db. --- crates/rattler_installs_packages/src/package_database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rattler_installs_packages/src/package_database.rs b/crates/rattler_installs_packages/src/package_database.rs index 263c2f1d..7347b328 100644 --- a/crates/rattler_installs_packages/src/package_database.rs +++ b/crates/rattler_installs_packages/src/package_database.rs @@ -215,7 +215,7 @@ impl PackageDb { let mut bytes = Vec::new(); self.http - .request(url, Method::GET, HeaderMap::default(), CacheMode::Default) + .request(url, Method::GET, HeaderMap::default(), CacheMode::NoStore) .await? .into_body() .read_to_end(&mut bytes)