#27572: Static files served in development should prevent caching
-------------------------------------+-------------------------------------
Reporter: Kevin Christopher | Owner: nobody
Henry |
Type: | Status: new
Cleanup/optimization |
Component: contrib.staticfiles | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Kevin Christopher Henry):
I haven't used `whitenoise` before, but based on the
[http://whitenoise.evans.io/en/stable/django.html#WHITENOISE_MAX_AGE
documentation] it looks like it's already doing what I proposed above:
{{{
WHITENOISE_MAX_AGE
Default: 60 if not settings.DEBUG else 0
Time (in seconds) for which browsers and proxies should cache non-
versioned files.
}}}
So, yes, a switch to `whitenoise` should solve this problem! I don't know
how imminent that is, so I'll leave it up to you whether this is worth
fixing in the meantime.
--
Ticket URL: <https://code.djangoproject.com/ticket/27572#comment:2>
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/065.f9842b307d486dbd484bcedcecf55c14%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.