diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cc8748753..ae1eb102c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ----- diff --git a/cdhweb/__init__.py b/cdhweb/__init__.py index 4b0e46442..cf2eba785 100644 --- a/cdhweb/__init__.py +++ b/cdhweb/__init__.py @@ -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. diff --git a/cdhweb/settings.py b/cdhweb/settings.py index e45833201..7947f485b 100644 --- a/cdhweb/settings.py +++ b/cdhweb/settings.py @@ -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",