I\'m writing an Angular SPA app, that uses HttpClient to get values from my backend.
What is the easy way to tell it not to cache? The first time I ask it gets the v
or,
Add headers in http request as:-
headers
http
headers = new Headers({ 'Cache-Control': 'no-cache, no-store, must-revalidate, post- check=0, pre-check=0', 'Pragma': 'no-cache', 'Expires': '0' });