![private cache access private cache access](https://digicruncher.com/wp-content/uploads/2020/01/Turn-Off-proxy.jpg)
![private cache access private cache access](https://miro.medium.com/max/4192/1*fGJRDsV98e8BNxmooWUbSw.png)
PRIVATE CACHE ACCESS HOW TO
Otherwise the data might be stored in a middle proxy server, were it could be accessed by anyone with access to it. How to clear browser cache after user logout to prevent access to private info via Back button. Note that each process will have its own private cache instance. If it's something that is related to the connected user (for example, the HTML in this page includes my username, so it won't be useful to anyone else) cache-control: private will be better, as the proxies would be caching data that won't be requested by other users, and they might also be keeping data that you don't want to be kept in servers that you don't trust.Īnd, of course, everything that is not public should have a private cache. An attacker who gains access to the cache file can not only falsify HTML content. If you use cache-control: public, you are saying that it's okay for everyone to cache the page, and so the proxy would keep a copy.Īs a rule of thumb, if it's something everybody can access (for example, the logo in this page) cache-control: public might be better, because the more people that cache it, the less bandwidth you'll need. By using cache-control:private, you are specifying that it shouldn't cache the page (but allowing the final user to do so). These are not the tokens used for the identities, but the tokens for. For example a Redis cache could be used to persist the access tokens for the services, and used in all trusted services which request secure API data. A distributed cache could be used to solve this problem. In the end, it all boils down to the data contained in the pages/files you are sending.įor example, your ISP could have an invisible proxy between you and the Internet, that is caching web pages to reduce the amount of bandwidth needed and lower costs. Using Cache to solve and improve performance with multiple instances.
![private cache access private cache access](https://hunter.readthedocs.io/en/latest/_images/hunter-cache-collaborator.png)
The only difference is that with Private you are not allowing proxies to cache the data that travels through them.