@maioradv/nestjs-core 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,9 @@ let HttpCacheInterceptor = class HttpCacheInterceptor extends cache_manager_1.Ca
|
|
|
19
19
|
if (context.getType() === 'graphql')
|
|
20
20
|
return false;
|
|
21
21
|
const req = context.switchToHttp().getRequest();
|
|
22
|
-
|
|
22
|
+
if (req.headers[exports.API_CACHE_CONTROL_HEADER] === ApiCacheControl.noCache)
|
|
23
|
+
return false;
|
|
24
|
+
return super.isRequestCacheable(context);
|
|
23
25
|
}
|
|
24
26
|
};
|
|
25
27
|
exports.HttpCacheInterceptor = HttpCacheInterceptor;
|