#34235: ManifestStaticFilesStorage should expose a "hash" of the manifest file.
-------------------------------------+-------------------------------------
Reporter: Florian | Owner: nobody
Apolloner |
Type: New | Status: new
feature |
Component: | Version: dev
contrib.staticfiles | Keywords: htmx unpoly hash
Severity: Normal | asset
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
It would be great if `ManifestFilesMixin` could expose a `manifest_hash`
that changes whenever *anything* in the manifest itself changes. This
would allow SPAs (or applications enhanced with htmx/unpoly etc) to send
along a header in responses ala `X-Asset-Hash` and allow them to perform a
full reload if the header changes.
I'll be opening a PR for discussion soon.
--
Ticket URL: <https://code.djangoproject.com/ticket/34235>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701855eaae3d4-4a234d87-277a-4d43-9c36-85395f6edaf9-000000%40eu-central-1.amazonses.com.