#31447: ManifestStaticFilesStorage should have file exclude patterns
-----------------------------------------------+------------------------
               Reporter:  Carsten Fuchs        |          Owner:  nobody
                   Type:  New feature          |         Status:  new
              Component:  contrib.staticfiles  |        Version:  3.0
               Severity:  Normal               |       Keywords:
           Triage Stage:  Unreviewed           |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+------------------------
 `ManifestStaticFilesStorage` covers all files found by the static files
 finders.
 However, it is not always desirable to have all files covered:

   - files for user download, e.g. `usermanual.pdf`:
       - such files are not cached by browsers and thus require no cache
 busting
       - files with hashes in their file name impair the user experience
   - files where the cache busting is done by other means:
       - e.g. when an explicit version string is already kept in other
 ways, e.g. manually as in `jquery-3.4.1.slim.min.js`

 Thus it would be helpful if files could be excluded from the manifest
 processing. For example, a setting with glob patterns could be introduced
 such as:
 {{{
 #!python
 STATICFILES_MANIFEST_EXCLUDES = (
     "*.pdf",
     "static/3rdparty/",
 )
 }}}
 Does that make sense?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31447>
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/051.a0a67632cb35c10171d2426c311e8d78%40djangoproject.com.

Reply via email to