304 Unchanged if valid -No-Match

I am optimizing the Express JSON API for consumption by iOS and Android applications and it seems that I cannot get Express to respond with the correct 304 header when Apps indicates etag in the If-None-Match header.

I do not need to configure Etag generation as Express already provided them; however, when applications indicate etag is again in the second request; Express "is still 200 with data, as you can see in my tests at Postman:

Postman request with correct If-None-Match header and 200 response

How to enable this feature?

Update: iOS developer sees correct 304 Not Modified answers from Express server, but I don’t understand why I don’t see them in Postman - does the postman support such actions?

+4
1

, Postman Cache-Control none. false.

enter image description here

+9

Source: https://habr.com/ru/post/1542940/