WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#1359 closed defect (bug) (worksforme)

Invalid 304 header for RSS under IIS/ISAPI

Reported by: toby Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: General Keywords:
Focuses: 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 (4)

comment:1 toby9 years ago

  • Patch set to No

comment:2 macmanx9 years ago

See bug #1323

comment:3 Nazgul8 years ago

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

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.

comment:4 Nazgul7 years ago

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