Hi!
Currently when using `ManifestStaticFilesStorage`, collectstatic generates duplicate versions of some files. For example looking at the output for contrib.admin for Django 1.11.5, there is:
- admin/css/base.css
- admin/css/base.5af66c1b1797.css
- admin/css/base.6b517d0d5813.css
- admin/css/base.31652d31b392.css
This is exacerbated when using something like WhiteNoise's CompressedStaticFilesMixin, which then has to spend extra time generating gzip and Brotli compressed versions of every file (or else try and work around it).
I was going to file a ticket about fixing this, however it appears to be unavoidable/working as intended according to:
In that ticket and corresponding PR, it's mentioned several times that CachedStaticFilesStorage is suboptimal and should probably be removed, and if that occurred it would then be possible to avoid the duplication.
As such, I'd like to propose that `CachedStaticFilesStorage` be marked as deprecated for the Django 2.0 release (with the warning suggesting people use `ManifestStaticFilesStorage` instead), so we could then remove it and make these optimisations in Django 3.0.
Thoughts?
Many thanks,
Ed