Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#133 closed defect (bug) (fixed)

Conditional GET still sends data after 304 Not Modified

Reported by: kelson Owned by: matt
Milestone: Priority: normal
Severity: minor Version: 1.2
Component: General Keywords:
Focuses: Cc:


If Wordpress determines that the output has not changed since the last update, it does generate a "304 Not Modified" response - but it still sends the data, defeating the purpose and wasting bandwidth.

Change History (4)

comment:2 @hugo11 years ago

Tried the suggested move of the exit out of ifs and it works right. Only problem I still see is that Last-Modified date is compared exact and not relative. This only works if clients send in the content of the Last-Modified header they received from the server with their If-Modified-Since header. If they use a system date of the stored (cached) file, they will often send in slightly different dates and exact matching won't work. So to really gain from the Last-Modified header, you would need to use relative comparison.

comment:3 @matt11 years ago

  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

comment:4 @matt11 years ago

All fixed up. :)

Note: See TracTickets for help on using tickets.