Skip to content

Commit

Permalink
Revert "Fix cache key not depending on chosen_algorithm (#54)"
Browse files Browse the repository at this point in the history
This reverts commit edbe5fb.
  • Loading branch information
alexprengere authored Oct 11, 2024
1 parent edbe5fb commit ae5b1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_compress/flask_compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def after_request(self, response):
response.direct_passthrough = False

if self.cache is not None:
key = (chosen_algorithm, self.cache_key(request))
key = self.cache_key(request)
compressed_content = self.cache.get(key)
if compressed_content is None:
compressed_content = self.compress(app, response, chosen_algorithm)
Expand Down

0 comments on commit ae5b1ba

Please sign in to comment.