Strange problem with expires?

David Hu me at davidte.ch
Tue Mar 1 20:43:56 UTC 2022


On 1 March 2022 20:40:48 UTC, Grzegorz Kulewski <gk at leniwiec.biz> wrote:
>Hello,
>
>I am using nginx 1.21.0 to serve static files for one domain and when I have:
>
>                location = / {
>                        expires epoch;
>                }
>
>expire headers are not added for / but when I remove '=' they are.
>
>Is this some bug or just me doing something stupid?
>
>Can anybody reproduce it too?
>

This is expected behaviour



More information about the nginx mailing list