What is the configuration required for caching of static resources like images, css and js in angular 2+



What is the configuration required for caching of static resources like images, css and js in angula..

Answer / Samarjeet Yadav

In Angular 2+, the built-in service HttpClient has support for caching. By default, it uses a cache for GET requests to improve performance. However, for more advanced caching configurations, you may need to implement custom interceptors or use services like Angular Service Worker.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is ngfor in angular?

1 Answers  


What is traceur compiler in angular 2?

1 Answers  


What is the forroot method in angular4?

1 Answers  


How can you use factory method in angularjs?

1 Answers  


What are the ngmodule metadata properties?

1 Answers  


Explain the concept of scope hierarchy?

1 Answers  


What's new in angular 8?

1 Answers  


Explain what are angular expressions?

1 Answers  


What is ivy renderer? Is it supported by angular 7?

1 Answers  


What is data binding in AngularJS?

1 Answers   SLK Software,


What are filters in angularjs? Can you list some?

1 Answers  


Difference between constructor and ngoninit?

1 Answers  


Categories