Absolute rather than relative times in expires directives

Denis F. Latypoff latypoff at yandex.ru
Sun Aug 1 13:51:43 MSD 2010


01.08.2010, 13:23, "Mark James" <mrj at advancedcontrols.com.au>:
> Hi,
>
> I have a static HTML page that is updated at midnight each day. So I'd like to set its expires directive to an absolute
> rather than a relative time.
>
> I was thinking of something like
>
>     expires at <crontab-line>
>
> e.g. expires at 0 0 * * *
>
> My questions:
>
>    - Is there an existing solution?

Yes:
    expires @23h59m;

--
br, Denis F. Latypoff.



More information about the nginx mailing list