Ticket #133 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Conditional GET still sends data after 304 Not Modified

Reported by: kelson Assigned to: matt
Priority: normal Milestone:
Component: General Version: 1.2
Severity: minor Keywords:
Cc: kelson, hugo

Description

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

06/29/04 14:23:21 changed by kelson

07/02/04 18:45:37 changed by hugo

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.

07/06/04 18:20:10 changed by matt

  • owner changed from anonymous to matt.
  • status changed from new to closed.
  • resolution changed from 10 to 20.

07/06/04 18:20:22 changed by matt

  • status changed from closed to closed.

All fixed up. :)