Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 990b4a8

Browse files
committed
hotfix: no-cache cache-control for preview mode
1 parent 57cc775 commit 990b4a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/templates/netlifyFunction.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const callbackHandler = (callback) =>
1919
].map((value) => String(value));
2020
});
2121

22+
response.multiValueHeaders["Cache-Control"] = ["no-cache"];
23+
2224
// Invoke callback
2325
callback(argument, response);
2426
};

0 commit comments

Comments
 (0)