static file caching/serving seems to work
This commit is contained in:
@@ -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)};
|
||||
|
||||
Reference in New Issue
Block a user