mirror of
https://github.com/directus/directus.git
synced 2026-01-28 23:27:59 -05:00
Merge branch 'main' into fix-356
This commit is contained in:
@@ -10,6 +10,8 @@ const checkCacheMiddleware: RequestHandler = asyncHandler(async (req, res, next)
|
||||
if (env.CACHE_ENABLED !== true) return next();
|
||||
if (!cache) return next();
|
||||
|
||||
if (req.headers['cache-control']?.includes('no-cache')) return next();
|
||||
|
||||
const key = getCacheKey(req);
|
||||
const cachedData = await cache.get(key);
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ const api = axios.create({
|
||||
withCredentials: true,
|
||||
headers: {
|
||||
'Cache-Control': 'no-cache',
|
||||
Pragma: 'no-cache',
|
||||
Expires: '0',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user