Code

Opened 6 years ago

Closed 3 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:

Description

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.

Attachments (0)

Change History (2)

comment:1 Changed 6 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 3 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.