Skip to content
Snippets Groups Projects
Commit 653ec0cb authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

No cache /notes/:note (#3382)

parent 13a75abc
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ router.get('/notes/:note', async (ctx, next) => {
}
ctx.body = pack(await renderNote(note, false));
ctx.set('Cache-Control', 'public, max-age=180');
ctx.set('Cache-Control', 'private, max-age=0, must-revalidate');
setResponseType(ctx);
});
......
......@@ -111,7 +111,7 @@ router.get('/notes/:note', async ctx => {
note: _note,
summary: getNoteSummary(_note)
});
ctx.set('Cache-Control', 'public, max-age=180');
ctx.set('Cache-Control', 'private, max-age=0, must-revalidate');
} else {
ctx.status = 404;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment