Opened 10 years ago

Closed 8 years ago

#8525 closed (wontfix)

Generic views should automatically set Last-Modified header

Reported by: matehat Owned by: nobody
Component: Generic views Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Wouldn't it be nice, since generic views often generate content based on querysets, if these views could also automatically set the "Last-Modified" HTTP header on the response object? The ConditionalGet middleware could then produce "Not Modified" responses when it should, and we could save some bandwidth.

Change History (2)

comment:1 Changed 10 years ago by Adrian Holovaty

Summary: Last-Modified Header automatically set by generic viewsGeneric views should automatically set Last-Modified header
Triage Stage: UnreviewedDesign decision needed

How would the generic view know the last-modified date?

comment:2 Changed 8 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

While this is a nice idea, without a concrete suggestion of how last-modified can be calculated in the generic sense, I'm closing wontfix.

Note: See TracTickets for help on using tickets.
Back to Top