Skip to content

Commit 38d575d

Browse files
committed
fix acm-cache-status header
1 parent e0ac910 commit 38d575d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/routes/events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const eventsPlugin: FastifyPluginAsync = async (fastify, _options) => {
174174
if (!ts) {
175175
reply.header("Cache-Control", CLIENT_HTTP_CACHE_POLICY);
176176
}
177-
return reply.header("x-acm-cache-status", "hit").send(parsedItems);
177+
return reply.send(parsedItems);
178178
} catch (e: unknown) {
179179
if (e instanceof Error) {
180180
request.log.error("Failed to get from DynamoDB: " + e.toString());
@@ -372,7 +372,7 @@ const eventsPlugin: FastifyPluginAsync = async (fastify, _options) => {
372372
if (!ts) {
373373
reply.header("Cache-Control", CLIENT_HTTP_CACHE_POLICY);
374374
}
375-
return reply.header("x-acm-cache-status", "miss").send(item);
375+
return reply.send(item);
376376
} catch (e) {
377377
if (e instanceof BaseError) {
378378
throw e;

0 commit comments

Comments
 (0)