From b4b8d0b5104c296a030a98e0f13672e009f0a15a Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 1 Sep 2021 19:57:25 +0100 Subject: [PATCH] . --- rapids/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/urls.py b/rapids/urls.py index d59056b0..c740a49e 100755 --- a/rapids/urls.py +++ b/rapids/urls.py @@ -1,7 +1,7 @@ from django.urls import path, include from . import views -from django.views.decorators.cache import cache_page +from django.views.decorators.cache import cache_page, cache_control app_name = "rapids" @@ -11,7 +11,7 @@ urlpatterns = [ path("", views.RapidExamViews.index, name="index"), path("author//", views.author_detail, name="author_detail"), path("author/", views.author_list, name="author_list"), - path("question/", cache_page(60 * 1)(views.RapidView.as_view()), name="rapid_view"), + path("question/", cache_control(private=True)(cache_page(60 * 1)(views.RapidView.as_view())), name="rapid_view"), # path("unchecked/", views.unchecked_list, name="unchecked_list"), # path("verified//", views.verified_detail, name="verified_detail"), path(