NgDocCacheInterceptor
Caches GET responses of requests that opt in with the query parameter. The parameter is removed before the request is sent, and every later request for the same URL shares the first response. A failed request is not cached.
It only runs when the application's uses interceptors from DI (). NgDoc's icons no longer depend on it: they are cached by .
- Decorators
@Injectable - Implements
HttpInterceptor
DeclarationTypeScript
@Injectable ()
export class NgDocCacheInterceptor implements HttpInterceptor { … }Members
Static Properties1 | ||||||||||
TOKEN: string | Name of the query parameter that marks a request as cacheable. | |||||||||
Methods1 | ||||||||||
(…): | Returns the cached response for opted-in | |||||||||
Signature Parameters
Returns | ||||||||||
No members match.