Commit b2646d33 authored by nanahira's avatar nanahira

improve

parent c38daeb8
......@@ -9,7 +9,7 @@ export class UpdateController {
constructor(private readonly updateService: UpdateService) {}
@Get('apps.json')
@ApiOperation({ summary: '获取 apps.json', description: '懒得解释这是啥了……' })
@Header('Cache-Control', 'public, max-age=600')
@Header('Cache-Control', 'public, max-age=600, stale-while-revalidate=604800, stale-if-error=604800')
getAppsJson() {
return this.updateService.getAppsJson();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment