Opened 8 years ago

Closed 6 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: UI/UX:


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 8 years ago by adrian

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Last-Modified Header automatically set by generic views to Generic views should automatically set Last-Modified header
  • Triage Stage changed from Unreviewed to Design decision needed

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

comment:2 Changed 6 years ago by russellm

  • Resolution set to wontfix
  • Status changed from new to closed

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