From 31c370c13e963932832c5f699fa549b823b53cfc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 22 Aug 2022 14:39:12 +0100 Subject: [PATCH] Don't cache security.txt view for full expiry time This could result in the expiry time being in the past --- website/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/urls.py b/website/urls.py index ac9a9c4..22cdabc 100644 --- a/website/urls.py +++ b/website/urls.py @@ -30,7 +30,7 @@ urlpatterns = [ path("robots.txt", cache_page(60 * 60)(RobotsView.as_view()), name="robotstxt"), path( ".well-known/security.txt", - cache_page(SecurityView.expires.total_seconds())(SecurityView.as_view()), + cache_page(SecurityView.expires.total_seconds() / 2)(SecurityView.as_view()), name="securitytxt", ), path(