diff --git a/app/portainer/services/axios.ts b/app/portainer/services/axios.ts index bb83c1d86..1a26de8b3 100644 --- a/app/portainer/services/axios.ts +++ b/app/portainer/services/axios.ts @@ -24,6 +24,11 @@ export const cache = setupCache({ return true; } + // exclude caching get with yaml accept header + if (req.headers?.Accept.includes('application/yaml')) { + return true; + } + // exclude caching post requests unless the path contains 'selfsubjectaccessreview' if ( !req.url?.includes('selfsubjectaccessreview') &&