chore: always return integers for Cache-Control max-age
This commit is contained in:
parent
969ab8d0d7
commit
1b89cadab5
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ export class StreamController {
|
|||
const { streams, ttl } = await this.streamResolver.resolve(ctx, sources, type, id);
|
||||
|
||||
if (ttl && envIsProd()) {
|
||||
res.setHeader('Cache-Control', `max-age=${ttl / 1000}, public`);
|
||||
res.setHeader('Cache-Control', `max-age=${Math.floor(ttl / 1000)}, public`);
|
||||
}
|
||||
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
|
|
|
|||
Loading…
Reference in a new issue