Skip to content

Commit

Permalink
Merge branch 'release/3.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Jan 22, 2024
2 parents e1a8f3f + cf6a572 commit d1d7bd8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

3.5.2
-----

Configure django-compressor to use content hash so css urls will be the same for load-balanced servers.

3.5.1
-----

Expand Down
2 changes: 1 addition & 1 deletion cdhweb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version_info__ = (3, 5, 1, None)
__version_info__ = (3, 5, 2, None)


# Dot-connect all but the last. Last is dash-connected if not None.
Expand Down
4 changes: 4 additions & 0 deletions cdhweb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@
"django_compressor_autoprefixer.AutoprefixerFilter",
)

# use content hashing to ensure same url on both servers
COMPRESS_CSS_HASHING_METHOD = "content"


STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
Expand Down

0 comments on commit d1d7bd8

Please sign in to comment.