Skip to content

Commit 43a62fe

Browse files
committed
added no cache header
1 parent 86982d8 commit 43a62fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const apiVideoKey = process.env.apivideoKeyProd;
2929
// website demo
3030
//get request is the initial request - load the HTML page with the form
3131
app.get('/', (req, res) => {
32-
32+
res.header('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0');
3333
//console.log(req);
3434
//usually you'd get values from POST body
3535
//let videoName=req.body.videoName;

0 commit comments

Comments
 (0)