Equivalent to nginx $date_gmt?

I’m trying to craft a Caddyfile for Openspeedtest. So far I couldn’t find a fitting replacement for the following line of the nginx configuration:

add_header Last-Modified $date_gmt;

The docs mention time related placeholders but nothing which fits the format and/or timezone required by the header:

Ah, good point, we should probably have that format built in. Opened a PR to add {time.now.http}.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.