Ticket #1359 (closed defect (bug): worksforme)

Opened 7 years ago

Last modified 5 years ago

Invalid 304 header for RSS under IIS/ISAPI

Reported by: toby Owned by: anonymous
Priority: normal Milestone:
Component: General Version: 1.5.1
Severity: minor Keywords:
Cc:

Description

This is not really a WordPress error, but apparently PHP under IIS running as ISAPI doesn't handle the custom 304 header that is sent when requesting RSS feeds.

I am running the latest PHP (4.3.11) for Windows as ISAPI.

The header shows up as:


HTTP/1.1 304 Undescribed Server: Microsoft-IIS/5.0 Date: Fri, 13 May 2005 18:59:42 GMT Content-type: text/html X-Powered-By: PHP/4.3.11 Not Modified


If I modify the following lines (Lines 144-148 of wp-blog-header.php)

if ( version_compare(phpversion(), '4.3.0', '>=') )

header('Not Modified', TRUE, 304);

else

header('HTTP/1.x 304 Not Modified');

exit;

to this:

if ( version_compare(phpversion(), '4.3.0', '>=') ) header('Not Modified', TRUE, 304); else

header('HTTP/1.x 304 Not Modified');

exit;

It works fine.

Change History

comment:1   toby7 years ago

  • Patch set to No

See bug #1323

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone set to 2.1

The code mentioned in wp-blog-header.php is no longer present. Therefore I'm going to close this ticket as worksforme.

If you have any additional information, please feel free to reopen this ticket.

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.