= 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 <[email protected]>
Sent: Wednesday, March 2, 2022 4:40:48 AM
To: [email protected] <[email protected]>
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 -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
nginx mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to