static file caching/serving seems to work

This commit is contained in:
2025-10-22 14:25:59 -07:00
parent f3a107111f
commit b3599633f9
8 changed files with 68 additions and 516 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ contents(#e{contents = X}) -> X.
% returns not_found if ANY I/O error occurs during the process. will be logged
new(Path) ->
tell("~tp:new(~tp)", [?MODULE, Path]),
log(info, "~tp:new(~tp)", [?MODULE, Path]),
case file:read_file(Path) of
{ok, Binary} ->
{found, new2(Path, Binary)};