Strange problem with expires?

Lucas Rolff lucas at lucasrolff.com
Tue Mar 1 20:48:31 UTC 2022


= 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 <gk at leniwiec.biz>
Sent: Wednesday, March 2, 2022 4:40:48 AM
To: nginx at nginx.org <nginx at 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 at nginx.org
To unsubscribe send an email to nginx-leave at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20220301/6b8b2121/attachment.htm>


More information about the nginx mailing list