Make WordPress Core

Opened 20 years ago

Closed 18 years ago

Last modified 7 years ago

#1359 closed defect (bug) (worksforme)

Invalid 304 header for RSS under IIS/ISAPI

Reported by: toby's profile 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 (5)

#1 @toby
20 years ago

  • Patch set to No

#2 @macmanx
20 years ago

See bug #1323

#3 @Nazgul
18 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.

#4 @Nazgul
17 years ago

  • Milestone 2.1 deleted

This ticket was mentioned in Slack in #core-coding-standards by jrf. View the logs.


7 years ago

Note: See TracTickets for help on using tickets.