Skip to content

Commit

Permalink
Attempt to fix issue in barn (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Aug 7, 2024
1 parent 43a0425 commit 5862714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/app/plugins/bffCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const bffCache: FastifyPluginCallback<BffCacheOptions> = (

let key = getKey(request);

// Remove it so we can cache it properly
request.headers['accept-encoding'] = undefined;

const cacheItem = await getCache(key, fastify).catch((e) => {
fastify.log.error(`Error getting key ${key} from cache`, e);
return undefined;
Expand Down

0 comments on commit 5862714

Please sign in to comment.