mirror of https://github.com/portainer/portainer
fix(cache): exclude reqs that accept yaml [EE-6381] (#10696)
Co-authored-by: testa113 <testa113>pull/10704/head
parent
bdcb003a32
commit
450c167461
|
@ -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') &&
|
||||
|
|
Loading…
Reference in New Issue