Skip to content

Commit 41a1bc5

Browse files
committed
fix: renew HTTP cache entry if it already exists
1 parent 6e8d1e9 commit 41a1bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/http.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async fn http_cache_put(context: &Context, url: &str, response: &Response) -> Re
120120
context
121121
.sql
122122
.insert(
123-
"INSERT OR IGNORE INTO http_cache (url, expires, blobname, mimetype, encoding)
123+
"INSERT OR REPLACE INTO http_cache (url, expires, blobname, mimetype, encoding)
124124
VALUES (?, ?, ?, ?, ?)",
125125
(
126126
url,

0 commit comments

Comments
 (0)