The documentation says that CachedStaticFilesStorage "is mostly useful for 
situations in which you don't have access to the file system." What should 
be used for that situation if CachedStaticFilesStorage is removed?

On Friday, September 15, 2017 at 12:58:44 PM UTC-4, [email protected] 
wrote:
>
> 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:
> https://code.djangoproject.com/ticket/24452#comment:16
>
> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/a8d0623a-4962-4f1a-a5f8-41372fdb7a18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to