As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
I want to set cach setting for security perspective, so i want to set 'no-cache' 'must revalidate' and 'no store'. how can i set these value my configuration file and which files can use for these changes.
please sugguest me.
Thanks in advance.
You can achieve this by doing these:
<meta http-equiv="cache-control" content="no-cache, must-revalidate,no-store"> <meta http-equiv="expires" content="0"> <meta http-equiv="pragma" content="no-cache">
Or 2. You can create custome HTTPInterceptor to modify all requests in your application. like:
intercept(req: HttpRequest<any>, next: HttpHandler) { const httpRequest = req.clone({ headers: new HttpHeaders({ 'Cache-Control': 'no-cache,must-revalidate,no-store', 'Pragma': 'no-cache' }) });