Skip to content

Commit 5adf882

Browse files
committed
chore
1 parent fec96fc commit 5adf882

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

nuxt.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ module.exports = {
99
host: '127.0.0.1'
1010
},
1111
/*
12-
** Render configuration
13-
*/
14-
render: {
15-
csp: true
16-
},
17-
/*
1812
** Environment variable configuration
1913
*/
2014
env: {

server/routes/v1/recommends.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ router.get('/recommendAuthor', validator({
1616
message: 'limit 需传入正整数'
1717
}
1818
}), async (ctx, next)=>{
19-
ctx.set('Cache-Control', 'max-age=300')
19+
ctx.set('Cache-Control', 'max-age=60')
2020
const headers = ctx.headers
2121
const options = {
2222
url: 'https://web-api.juejin.im/query',

0 commit comments

Comments
 (0)