Skip to content

api_route: Ensure never_cache is honored for all response status codes

Previously never cache headers were only added for responses with status code 200 but error responses must also be considered.

So move never_cache parameter handling of api_route decorator from apiurls module to apiresponse one.

Related to swh/infra/sysadm-environment#2774 (closed)


Migrated from D5094 (view on Phabricator)

Merge request reports