Skip to content

Commit

Permalink
Merge 9525086 into 618181b
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 28, 2022
2 parents 618181b + 9525086 commit 22d6b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const fp = require("fastify-plugin");
* @param {object} server - Fastify instance.
*/
async function plugin(server) {
server.addHook("onRequest", async (req, reply) => {
reply.headers({
server.addHook("onRequest", async (req, res) => {
res.headers({
"Cache-Control": "no-store, max-age=0, must-revalidate",
Expires: "0",
Pragma: "no-cache",
Expand Down

0 comments on commit 22d6b33

Please sign in to comment.