Skip to content

Commit f7f2565

Browse files
committed
chore(cache): set maxAge to 30 days
1 parent e4b87b8 commit f7f2565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/set-cookie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default async function cookieHandler(req, res) {
1010
serialize('gfw-token', body.token, {
1111
path: '/',
1212
httpOnly: true,
13-
maxAge: 0, // no cache
13+
maxAge: 2592000, // expires in 30 days
1414
})
1515
);
1616
res.status(200).end('ok');

0 commit comments

Comments
 (0)