adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Angularjs dependency injection of value inside of the module.config?

900


Give the example of angularjs strings?

879


Which version you are using js?

952


How to enable html5 mode in angular 1.x?

935


How to use primeng in angular 4?

952


How to create angularjs filter which outputs html?

868


How to implement a datagrid table with angular 2 and primeng?

900


What is the latest version of angular?

985


What is the latest angular?

817


How an object or function can get a hold of its dependencies?

858


What is a dynamic route in angularjs and how do you implement it?

873


How to get and log an error in angular 4?

885


How can primeng be used with angular2?

955