Skip to content

Lightpanda: the headless browser designed for AI and automation

remove cache eviction path from HttpClient

Muki Kiboigo84405ad9308f
diff --git a/src/network/HttpClient.zig b/src/network/HttpClient.zig
index 94777324a..124b09c79 100644
--- a/src/network/HttpClient.zig
+++ b/src/network/HttpClient.zig
@@ -921,15 +921,6 @@ fn cacheLookup(self: *Client, transfer: *Transfer) !bool {
return true;
}
- if (cached.metadata.hasValidators() == false) {
- // Expired and no validators
- lp.metrics.http_cache.incr(.miss);
- cached.data.deinit();
- cache.evict(req.url);
- transfer._cache_intent = .store;
- return false;
- }
-
// expired but with validators
log.debug(.cache, "revalidate with etag", .{
.url = req.url,