Nginx – Cache control, set private cache per user

We can cache a public resource without problem but when caching a private resource. There are some notices we must take in account: According to Nginx document: The following response headers flag a response as uncacheable unless they are ignored: Set-Cookie Cache-Control containing "no-cache", "no-store", "…

Nginx Uwsgi – Private cache

– For a public resource, we can cache without problem – The problem is when we want caching for a private resource, imagine 2 different users (cookie different) want to access to same API: api/my_infos => So one of the solutions is: – Either we add somethings in URL (Ex: api/…