Elli middleware adding the Date header.
This Elli middleware adds the "Date" header to responses. The current date string is cached in an ETS-table and updated once a second. The impact on performance is very low, if noticeable at all.
According to the HTTP 1.1 specification, the "Date" header in each response is required.
To use elli_date
, just add it to your mods
in your elli_middleware
Config
.
Config = [
{mods, [
{elli_date, []},
%% ...,
]}
],
elli:start_link([
%% ...,
{callback, elli_middleware},
{callback_args, Config}
]).