Add cache to robots.txt view

This commit is contained in:
Jake Howard 2022-08-22 14:38:32 +01:00
parent 521595a781
commit a110b9c34e
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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()),