Don't cache security.txt view for full expiry time

This could result in the expiry time being in the past
This commit is contained in:
Jake Howard 2022-08-22 14:39:12 +01:00
parent a110b9c34e
commit 31c370c13e
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -30,7 +30,7 @@ urlpatterns = [
path("robots.txt", cache_page(60 * 60)(RobotsView.as_view()), name="robotstxt"), path("robots.txt", cache_page(60 * 60)(RobotsView.as_view()), name="robotstxt"),
path( path(
".well-known/security.txt", ".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", name="securitytxt",
), ),
path( path(