// 过滤非get请求
if (method !== 'GET') {
response.statusCode = 405
response.end()
return
}
// 设置缓存
response.setHeader('CaChe-Control', `public, max-age${cacheAge}`)
// 过滤非get请求
if (method !== 'GET') {
response.statusCode = 405
response.end()
return
}
// 设置缓存
response.setHeader('CaChe-Control', `public, max-age${cacheAge}`)