From cc672b81faaf1cde62f665b1ef5d2af525f02878 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 11 Dec 2024 23:16:52 +0000 Subject: [PATCH] fix: renew HTTP cache entry if it already exists --- src/net/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/http.rs b/src/net/http.rs index fe3d908987..210114cab9 100644 --- a/src/net/http.rs +++ b/src/net/http.rs @@ -120,7 +120,7 @@ async fn http_cache_put(context: &Context, url: &str, response: &Response) -> Re context .sql .insert( - "INSERT OR IGNORE INTO http_cache (url, expires, blobname, mimetype, encoding) + "INSERT OR REPLACE INTO http_cache (url, expires, blobname, mimetype, encoding) VALUES (?, ?, ?, ?, ?)", ( url,