From a110b9c34e44f58979d0ca700e711af077b35e49 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 22 Aug 2022 14:38:32 +0100 Subject: [PATCH] Add cache to robots.txt view --- website/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/urls.py b/website/urls.py index ba1ef4c..ac9a9c4 100644 --- a/website/urls.py +++ b/website/urls.py @@ -27,7 +27,7 @@ urlpatterns = [ name="wagtailimages_serve", ), path("sitemap.xml", cache_page(60 * 60)(sitemap), name="sitemap"), - path("robots.txt", RobotsView.as_view(), name="robotstxt"), + 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()),