Expires: modified +1d?

Igor Sysoev is at rambler-co.ru
Thu May 15 15:23:20 MSD 2008

On Thu, May 15, 2008 at 10:26:36AM +0100, Phillip B Oldham wrote:

> Is it possible to set the expires header based on the modified time of a 
> file? I know you can do this in lighttpd and apache, but I can't find 
> any configuration examples for nginx.

Try the attached patch.

It allows

    expires modified +1d;

Igor Sysoev

More information about the nginx mailing list