Make favicon.ico expires after 24 hours.

This commit is contained in:
2016-11-30 15:40:12 +01:00
parent 19eb5113e9
commit 410903ff5c

View File

@@ -291,6 +291,7 @@ feature -- Execution
p := api.theme_assets_location.extended ("favicon.ico")
if ut.file_path_exists (p) then
create f.make_with_path (p)
f.set_expires_in_seconds (86_400) -- 24h = 60 sec * 60 min * 24 = 86 400 minutes
res.send (f)
else
create r.make (req, res, api)