#1359 closed defect (bug) (worksforme)
Invalid 304 header for RSS under IIS/ISAPI
| Reported by: | toby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.5.1 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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
@
20 years ago
- Milestone → 2.1
- Resolution → worksforme
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See bug #1323