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:
parent
a110b9c34e
commit
31c370c13e
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue