= is for exact matches, so unless your static file is called / - it obviously won’t match that exact location.
No modifier (so no =) means it’s a prefix Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: Grzegorz Kulewski <g...@leniwiec.biz> Sent: Wednesday, March 2, 2022 4:40:48 AM To: nginx@nginx.org <nginx@nginx.org> Subject: Strange problem with expires? 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? -- Grzegorz Kulewski _______________________________________________ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org
_______________________________________________ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org