Merge branch 'main' into fix-356

This commit is contained in:
rijkvanzanten
2020-12-16 18:10:01 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -8,8 +8,6 @@ const api = axios.create({
withCredentials: true,
headers: {
'Cache-Control': 'no-cache',
Pragma: 'no-cache',
Expires: '0',
},
});