How to implement http cache using interceptors in angular 4?



How to implement http cache using interceptors in angular 4?..

Answer / Azat Shatru

To implement HTTP caching using interceptors in Angular 4, you can create a custom HttpInterceptor that modifies the outgoing or incoming requests/responses based on your caching strategy. The interceptor can check for cached data before making network requests and return it if available.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are the security threats should we be aware of in angular 2 application?

1 Answers  


What is Data Binding? How Many Types Of Data Binding Directives Are Provided By AngularJS?

1 Answers  


List out the advantages of angularjs?

1 Answers  


Explain about single and multithread in javascript?

1 Answers  


What is link function in angularjs?

1 Answers  


What does a service mean in angularjs? Explain its built-in services?

1 Answers  


What is in node js?

1 Answers  


How do you exchange data among different modules of your angular js application?

1 Answers  


How to use angular js?

1 Answers  


How to send and set cookies in angular 4?

1 Answers  


What is the syntax for creating a new date object?

1 Answers  


In case of nested controllers, does the $scope object shared across all controllers?

1 Answers  


Categories