From 73163db38a1083eee21558019cb55e34147d93b1 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 4 Nov 2019 18:03:12 +0800 Subject: [PATCH] fix: weibo timeline response cache --- lib/routes/weibo/timeline.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/routes/weibo/timeline.js b/lib/routes/weibo/timeline.js index ca2e6c34bd..f07616c67a 100644 --- a/lib/routes/weibo/timeline.js +++ b/lib/routes/weibo/timeline.js @@ -73,6 +73,9 @@ module.exports = async (ctx) => { const { app_key = '', redirect_url = ctx.request.origin + '/weibo/timeline/0' } = config.weibo; ctx.status = 302; + ctx.set({ + 'Cache-Control': 'no-cache', + }); ctx.redirect(`https://api.weibo.com/oauth2/authorize?client_id=${app_key}&redirect_uri=${redirect_url}`); } };