Staging instance, all changes can be removed at any time

Skip to content

api: Fix endpoint responses that must not be cached

Due to a recent factoring related to api_* decorators, the effect of the never_cache django decorator was not applied anymore.

So add a never_cache parameter to the api_route decorator ensuring cache-control reponse header will be set when required.

Also add missing tests checking cache-control header in api responses.

Closes swh/infra/sysadm-environment#2810 (closed)


Migrated from D4595 (view on Phabricator)

Merge request reports

Loading