Skip to content

Commit

Permalink
fix: renew HTTP cache entry if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Dec 11, 2024
1 parent 698136b commit cc672b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc672b8

Please sign in to comment.