I'd like to cache certain views/pages for unauthenticated users but django cache_page does not seem to have such option. So wonderin how best can I achieve this?
Asked
Active
Viewed 126 times
0
-
You could vary the cache if a user has a cookie? https://docs.djangoproject.com/en/1.9/topics/cache/#using-vary-headers – Adam Benzan Dec 08 '15 at 12:49
-
@AdamBenzan yes, I've seen that but since not sure what's the difference between unauthenticated and authenticated cookies, I don't know how to use it. – Jand Dec 08 '15 at 14:34