Publicado el Domingo 07 de Enero del 2007 @ 23:12 por Armonth.
This is an english summary from the previous post (in spanish).
In the past, WP-Cache 2.0.17 and above versions cache the Error 404 page (sending the correct header: HTTP 404 Not Found) and next time send the cached page with bad header (HTTP 200 OK). This behavior causes a failure in Google Sitemaps verification.
This bug if fixed in WP-Cache 2.0.18 and newest versions, but WordPress 2.0.6 fails again and send a bad header. This time is not WP-Cache’s fault since disabling cache it does not work for fix this.
The most easier way to fix this behavior and to send the correct header is add three code lines at the begining of the file header.php:
<?php if (is_404()) {
header('HTTP/1.0 404 Not Found');
} ?>
Drop all cache pages and use this tool or another way to see the headers. You can see this message: “HTTP/1.1 404 Not Found”.
wget -S http://sigt.net/this-page-not-exist/
Petición HTTP enviada, esperando respuesta...
HTTP/1.1 404 Not Found
...
...
23:06:26 ERROR 404: Not Found.
Works!.
SigT in inglis, je,je,je,je.. ahora tendriamos que llamarlo NextT :P