jezdez/django_compressor — pull request #396 by KevinBrolly (2013-04-25 15:33:17+00:00)
Title: Ability to reference files renamed by staticfiles CachedFilesMixin to allow versioning of files via filename

I added a setting called CSS_INVALIDATION_METHOD that allows you to choose an alternative to adding a suffix of a hash of the files contents in compressed files.

The method that I added will rename files by adding a hash of their content to the filename, as the CachedFilesMixin from Django Staticfiles does. The method renames files via the hashed_name method of the STATICFILES_STORAGE class used so the method of hashing can change.