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: [https://github.com/evansd/whitenoise/issues/147
evansd/whitenoise#147]).
This was called unavoidable/working as intended according to:
https://code.djangoproject.com/ticket/24452#comment:16
https://github.com/django/django/pull/6507
However now that it's looking like `CachedStaticFilesStorage` will end up
being removed ([https://groups.google.com/forum/#!topic/django-
developers/fmfQvuHBStk mailing list thread]; or at the very least we're
discouraging people from using it, since it's buggy in several scenarios)
- the intermediate files needn't be left behind.
Even before `CachedStaticFilesStorage` ends up being removed, we could
perhaps add a `keep_intermediate_files` property to `HashedFilesMixin`,
that is set to `False` for `CachedStaticFilesStorage` and `True` for
`ManifestStaticFilesStorage`, allowing us to fix the latter in the
meantime.
--
Ticket URL: <https://code.djangoproject.com/ticket/28604>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:1>
* owner: nobody => Masataka Arai
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:2>
* status: assigned => new
* owner: Masataka Arai => (none)
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:3>
* owner: (none) => Nathan Gaberel
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/11216 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:5>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:6>
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b27c9c953bce3aed205ebc378350ef027ebdd25b" b27c9c95]:
{{{
#!CommitTicketReference repository=""
revision="b27c9c953bce3aed205ebc378350ef027ebdd25b"
Fixed #28604 -- Prevented ManifestStaticFilesStorage from leaving
intermediate files.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28604#comment:8>