We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d28902 + 02b4b25 commit 4d9673eCopy full SHA for 4d9673e
src/cache-control.decorator.ts
@@ -12,7 +12,7 @@ export const CacheControl = ({
12
inheritMaxAge,
13
}: CacheControlOptions) =>
14
Directive(
15
- `@cacheControl(scope: ${scope}${maxAge ? `, maxAge: ${maxAge}` : ''}${
+ `@cacheControl(scope: ${scope}${maxAge !== undefined ? `, maxAge: ${maxAge}` : ''}${
16
inheritMaxAge ? `, inheritMaxAge: ${inheritMaxAge}` : ''
17
})`
18
);
0 commit comments