New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add proxito headers to redirect responses #7007
Conversation
This lets us set the cache and debug headers on all our proxito responses. This is a step towards letting us cache pages a longer amount of time.
This looks like a cleaner solution! |
@@ -144,6 +145,8 @@ def process_response(self, request, response): # noqa | |||
|
|||
hsts_header_values = [] | |||
|
|||
self.add_proxito_headers(request, response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than adding a single-use mixin in a separate file, couldn't this method just be a method on this class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I thought we'd have to use it more places, but we haven't yet, so that seems fine.
This lets us set the cache and debug headers on all our proxito responses.
This is a step towards letting us cache pages a longer amount of time.
This includes and fixes #6907 as well👍