Skip to content

Commit

Permalink
Merge #1569
Browse files Browse the repository at this point in the history
1569: Increase cache on deprecated self-repair to one week r=sciurus a=mythmon

This view serves a message that the system is no longer active. We keep it around because it is still gets about 40 million hits per day, primarily from Firefox ESR 52, which never got the Normandy client. Notably, when we dropped support for Windows XP from Firefox, we put all XP users onto ESR 52, so we are not likely to be able to remove this endpoint any time soon.

Fixes #1563

Co-authored-by: Mike Cooper <mythmon@gmail.com>
  • Loading branch information
bors[bot] and mythmon committed Oct 4, 2018
2 parents 788f183 + 2408c52 commit 283b0ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions normandy/selfrepair/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from django.shortcuts import render
from django.views.decorators.cache import cache_control

from normandy.base.decorators import api_cache_control

ONE_WEEK_IN_SECONDS = 60 * 60 * 24 * 7

@api_cache_control()

@cache_control(public=True, max_age=ONE_WEEK_IN_SECONDS)
def repair(request, locale):
return render(request, "selfrepair/repair.html")

0 comments on commit 283b0ae

Please sign in to comment.