# HG changeset patch # User Kim Alvefur # Date 1556938120 -7200 # Node ID 9bb1bed3e8e3a050af14b83c2c225346c8ee328d # Parent 8d46ecc4bd0c6f1bc4a31da8572f4eb90452a049 net.http.files: Bump cache hits so they stay cached It's not an LRU cache unless this is done. diff -r 8d46ecc4bd0c -r 9bb1bed3e8e3 net/http/files.lua --- a/net/http/files.lua Sat May 04 04:33:41 2019 +0200 +++ b/net/http/files.lua Sat May 04 04:48:40 2019 +0200 @@ -94,6 +94,7 @@ if data and data.etag == etag then response_headers.content_type = data.content_type; data = data.data; + cache:get(orig_path, data); elseif attr.mode == "directory" and path then if full_path:sub(-1) ~= "/" then local dir_path = { is_absolute = true, is_directory = true };