12-26-2019 05:24 AM
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.
01-04-2020 12:55 AM
Hi,
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'
})
});
Explore our Alfresco products with the links below. Use labels to filter content by product module.