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 T2774
Differential D5094
api_route: Ensure never_cache is honored for all response status codes Authored by anlambert on Feb 17 2021, 1:55 PM.
Details
Previously never cache headers were only added for responses with status code So move never_cache parameter handling of api_route decorator from apiurls Related to T2774
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D5094 (id=18188)Rebasing onto 113957105c... Current branch diff-target is up to date. Changes applied before testcommit eecf55400525d38c1a93508ba3694ad2837100db
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date: Wed Feb 17 13:49:48 2021 +0100
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 T2774Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/573/ Comment Actions Build is green Patch application report for D5094 (id=18193)Rebasing onto 2e0ccea86a... Current branch diff-target is up to date. Changes applied before testcommit 2fbbbb95ef8b582f48efe189d46f0fe0d613e5dd
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date: Wed Feb 17 13:49:48 2021 +0100
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 T2774See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/575/ for more details. |