Django - Caching
You want to cache a Django view that shows user-specific data but still use per-view caching. Which approach correctly applies caching without showing wrong data to users?
Vary header to separate cache by user sessionVary: Cookie tells cache to store different versions per user session cookie.@cache_page(120) and add Vary: Cookie header to cache per user session -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions