#24452: Staticfiles backends using HashedFilesMixin don't update CSS files' hash
when referenced media changes
-------------------------------------+-------------------------------------
     Reporter:  pmclanahan           |                    Owner:
                                     |  pmclanahan
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.staticfiles  |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by pmclanahan):

 Yeah. The real issue is figuring out how to allow it to calculate the same
 hash for the modified contents of the file at app run time and not just at
 collectstatic time. I could do it if I was only dealing with the manifest
 storage since that should never need to recalculate the hash, just look it
 up. But the caching backend may get a miss and need to calculate it again
 from the content, and I think it'd be too slow to hash all the dependent
 files, replace the file names, and hash the CSS at runtime. I can't think
 of a persistent place to put this info.

 How bad would it be to fix this only for {{{ManifestStaticFilesStorage}}}
 along with some documentation explaining the problem and why the manifest
 fixes it?

--
Ticket URL: <https://code.djangoproject.com/ticket/24452#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.239319dd56ca0173c49714d1e5b834d2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to