#35141: CACHE_MIDDLEWARE_SECONDS can be set to a float but has to be an int
-------------------------------------+-------------------------------------
Reporter: Alexander Lazarević | Owner: nobody
Type: Bug | Status: new
Component: Core (Cache system) | Version: dev
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 Alexander Lazarević):
The testcase in question produces a `TemplateResponse` like this:
{{{
<TemplateResponse status_code=200, "text/html; charset=utf-8">
{'Content-Type': 'text/html; charset=utf-8', 'Expires': 'Thu, 25 Jan 2024
03:19:03 GMT', 'Cache-Control': 'max-age=2.0'}
}}}
And from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-
Control
"The max-age=N response directive indicates that the response remains
fresh until N seconds after the response is generated."
Where N is an int
--
Ticket URL: <https://code.djangoproject.com/ticket/35141#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018d3ec0c943-fcc3e34f-6591-4f4e-bbef-66cdcc9b25e4-000000%40eu-central-1.amazonses.com.