Skip to content

Commit 31651e8

Browse files
authored
refactor(index): freeze CACHE_HEADERS object (#377)
1 parent 80420ea commit 31651e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
const fp = require("fastify-plugin");
44

5-
const CACHE_HEADERS = {
5+
/** @type {Readonly<Record<string, string>>} */
6+
const CACHE_HEADERS = Object.freeze({
67
"cache-control": "no-store, max-age=0, must-revalidate",
78
expires: "0",
89
pragma: "no-cache",
910
"surrogate-control": "no-store",
10-
};
11+
});
1112

1213
/**
1314
* @author Frazer Smith

0 commit comments

Comments
 (0)