#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 (5)
#3
@
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.
See bug #1323