Search posts, tags, users, and pages
Learn how to ignore a route from caching by overriding CacheInterceptor
Shahid Kamal
@shahidcodes
Software Engineer
Markdown supported · ⌘↵ to post
Sergio
Great article Shahid!
Do I also need to include new interceptor/decorator somewhere else? Like app.module?
This example didn't work for me right away...
thanks,
If you want the cache interceptor to work on the global level then add below in the app.module.ts
app.module.ts
providers: [ { provide: APP_INTERCEPTOR, useClass: MyCacheInterceptor, }, ]
Yunus Emre INCE
That is exactly what I was looking for. Thank you Shahid for clear explanation and code samples
Sergio
Great article Shahid!
Do I also need to include new interceptor/decorator somewhere else? Like app.module?
This example didn't work for me right away...
thanks,