Skip to content

Commit

Permalink
settings: Use content hashing for django-compressor
Browse files Browse the repository at this point in the history
This makes it safe to deploy on multiple servers.

See WeblateOrg/helm#54
  • Loading branch information
nijel committed Jun 29, 2023
1 parent 69f5929 commit 90fbea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions weblate/settings_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@
# Django compressor offline mode
COMPRESS_OFFLINE = True
COMPRESS_OFFLINE_CONTEXT = "weblate.utils.compress.offline_context"
COMPRESS_CSS_HASHING_METHOD = "content"

# Require login for all URLs
if REQUIRE_LOGIN:
Expand Down
1 change: 1 addition & 0 deletions weblate/settings_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@
# Django compressor offline mode
COMPRESS_OFFLINE = False
COMPRESS_OFFLINE_CONTEXT = "weblate.utils.compress.offline_context"
COMPRESS_CSS_HASHING_METHOD = "content"

# Require login for all URLs
if REQUIRE_LOGIN:
Expand Down

0 comments on commit 90fbea8

Please sign in to comment.