Pagination headers missing in staging/production
In local environments, I am able to see pagination headers in the response of calls I make to the server (1). These calls are done to the endpoint through our nginx layer that we define in the project (so to http://api.rem.docker/api/organizations/656/contacts rather than directly hitting the content using localhost:port).
On staging, I am unable to see these headers from the response when we are calling it in the contact management page (2). This example was fetched through https://membership-staging.eclipse.org/portal/contact-management while logged into a CR for 656 as an example, which hit the URL https://membership-staging.eclipse.org/api/organizations/656/contacts?page=1.
Somewhere in the chain, they are being striped from the response, but I'm unable to determine where they are being striped. As the data coming from API can't even be estimated, I'm going to guess that the nginx layer that exists on top of our implementation is striping the headers.
@cguindon @mward this used to work, and no one mentioned changing any directives that would impact headers so I'm not really sure where or when these headers were lost. They are currently impacting production users of the API with more than 100 contacts, which is a major issue for large stakeholders.
1
Connection: keep-alive
Content-Length: 10096
Content-Type: application/json
Date: Thu, 16 Jun 2022 19:17:09 GMT
Link: <https://api.rem.docker/api/organizations/656/contacts?page=1>; rel="self"; title="this page of results"; type="", <https://api.rem.docker/api/organizations/656/contacts?page=1>; rel="first"; title="first page of results"; type="", <https://api.rem.docker/api/organizations/656/contacts?page=3>; rel="last"; title="last page of results"; type="", <https://api.rem.docker/api/organizations/656/contacts?page=2>; rel="next"; title="next page of results"; type=""
Server: nginx/1.21.6
Set-Cookie: JSESSIONID=Q3ZpJTyFOVSqnahKpBPVqhQXkH-iLSbA74aHcUZJ; path=/
x-csrf-token: 22ce9f6cf61a7d3fa7d1de6161faaad876d1bf24a7ea17e5228f2b9e7d74fc3c
X-Max-Page-Size: 100
X-Max-Result-Size: 239
2
cache-control: no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/json
Date: Thu, 16 Jun 2022 18:48:02 GMT
last-modified: Thursday, 16-Jun-2022 18:47:59 UTC
link: <https://membership-staging.eclipse.org/api/organizations/656/contacts?page=1>; rel="self"; title="this page of results"; type="", <https://membership-staging.eclipse.org/api/organizations/656/contacts?page=1>; rel="first"; title="first page of results"; type="", <https://membership-staging.eclipse.org/api/organizations/656/contacts?page=1>; rel="last"; title="last page of results"; type=""
Server: nginx
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
x-csrf-token: 1410ba48cbc67b1cd245415227166fec66913d0ec7f204bb1c847a88a1fb6d55
X-Frame-Options: SAMEORIGIN
X-Proxy-Cache: BYPASS
X-XSS-Protection: 1; mode=block