mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #34235 -- Added ManifestFilesMixin.manifest_hash attribute.
This adds ManifestFilesMixin.manifest_hash attribute exposing a "hash" of the full manifest. This allows applications to determine when their static files have changed.
This commit is contained in:
committed by
Mariusz Felisiak
parent
75500feecd
commit
afa2e28205
@@ -336,6 +336,14 @@ argument. For example::
|
||||
Support for finding paths to JavaScript modules in ``import`` and
|
||||
``export`` statements was added.
|
||||
|
||||
.. attribute:: storage.ManifestStaticFilesStorage.manifest_hash
|
||||
|
||||
.. versionadded:: 4.2
|
||||
|
||||
This attribute provides a single hash that changes whenever a file in the
|
||||
manifest changes. This can be useful to communicate to SPAs that the assets on
|
||||
the server have changed (due to a new deployment).
|
||||
|
||||
.. attribute:: storage.ManifestStaticFilesStorage.max_post_process_passes
|
||||
|
||||
Since static files might reference other static files that need to have their
|
||||
|
||||
Reference in New Issue
Block a user