Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fix cache_control failure
Browse files Browse the repository at this point in the history
  • Loading branch information
katdom13 committed Dec 20, 2023
1 parent de51dff commit 921ffad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tbx/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.utils.decorators import method_decorator
from django.views.decorators.cache import never_cache
from django.views.decorators.vary import vary_on_headers

Expand Down Expand Up @@ -84,7 +85,9 @@
),
)

Page.serve = get_default_cache_control_decorator()(Page.serve)
Page.serve = method_decorator(get_default_cache_control_decorator(), name="serve")(
Page.serve
)

# Join private and public URLs.
urlpatterns = (
Expand Down

0 comments on commit 921ffad

Please sign in to comment.