diff --git a/src/cache-control.decorator.ts b/src/cache-control.decorator.ts index 7f171e1..ffa04f0 100644 --- a/src/cache-control.decorator.ts +++ b/src/cache-control.decorator.ts @@ -12,7 +12,7 @@ export const CacheControl = ({ inheritMaxAge, }: CacheControlOptions) => Directive( - `@cacheControl(scope: ${scope}${maxAge ? `, maxAge: ${maxAge}` : ''}${ + `@cacheControl(scope: ${scope}${maxAge !== undefined ? `, maxAge: ${maxAge}` : ''}${ inheritMaxAge ? `, inheritMaxAge: ${inheritMaxAge}` : '' })` );