open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
34 stars 25 forks source link

Respect cache related headers in service fetch #3487

Open SilviaAmAm opened 12 months ago

SilviaAmAm commented 12 months ago

Related to this comment: https://github.com/open-formulieren/open-forms/pull/3484#discussion_r1328011435

Now, service fetch responses are always cached. It would be good to respect cache headers returned by the APIs.

However, the zds client only returns the JSON of the response and not the headers

joeribekker commented 11 months ago

Refinement: This sounds like an eternal struggle: Organizations ask for APIs to always return "no cache" headers, and then expect clients to be fast (and thus cache things)...