cache_control returns 200 OK response even page has not been changed.
|Reported by:||jtiai||Owned by:||nobody|
|Component:||Core (Cache system)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
@cache_control(must_revalidate=True) @cache_page(60 * 60) def myview(request) return HttpResponse('test')
Returns always 200 OK response and complete cached content. Modified since and modified dates and ETags in request and response headers do match.
Return value 304 Not Modified if cache conditions are met and do not fetch data from cache nor execute view.
Change History (3)
comment:1 Changed 4 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted