Open dustinbyrne opened 11 months ago
Thanks for figuring this out! Actually I think we can leave the OpenAPI behavior as is, and report an advisory when 304 is never observed in the test run.
We can detect the case when the server is reporting cache control headers but 304 is never actually observed (and thus may not be working). I would consider this a performance advisory.
Can you open an issue on the server to ensure that both 200 and 304 are observed on every test run?
See the following report: https://github.com/getappmap/appmap-server/pull/1331#issuecomment-1769293435
Depending on the order tests are run, sometimes the client already has a cached response. This will change the response status from 200 to 304 in the OpenAPI diff. It's not immediately clear to me how to resolve this.
A couple of options may be:
Cache-Control
header is included in a server response