fix: renew HTTP cache entry if it already exists

This commit is contained in:
link2xt
2024-12-11 23:16:52 +00:00
committed by l
parent 698136b30c
commit cc672b81fa

View File

@@ -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,