Mobile app version of vmapp.org
Login or Join
Bryan171

: Google doesn't recognize a 404 status code There are 404 pages with two kinds of response headers (copypasted in full length from Chrome DevTools, Network tab): Response headers: cache-control:max-age=0,

@Bryan171

Posted in: #Google #Googlebot #GoogleSearchConsole

There are 404 pages with two kinds of response headers (copypasted in full length from Chrome DevTools, Network tab):


Response headers:

cache-control:max-age=0, no-store
content-type:text/html
date:Wed, 24 Jan 2018 10:55:59 GMT
server:Apache/2.4.29 (Ubuntu)
status:404
x-powered-by:PHP/5.5.9-1ubuntu4.22
Response headers

cache-control:max-age=0, no-store
cache-control:no-cache, max-age=0, must-revalidate
content-type:text/html; charset="utf-8"
date:Wed, 24 Jan 2018 10:55:40 GMT
expires:Thu, 19 Nov 1981 08:52:00 GMT
pragma:no-cache
server:Apache/2.4.29 (Ubuntu)
set-cookie:bypassStaticCache=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; httponly
set-cookie:bypassStaticCache=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; httponly
status:404
x-powered-by:PHP/5.5.9-1ubuntu4.22


The pages with the first kind of response headers aren't recognized by Google as 404. Instead of 404 alerts the Search Console those pages as duplicate pages without canonical tag.

The pages with the second kind of response headers are correctly recognized as 404.

Not recognized means: Google calls such pages Duplicate page without canonical tag, despite the fact, that developer tools of Firefox and Chrome get correct 404 status code.

Recognized means: such pages are called Not found (404), like on the following screenshot:


Why is it so? What prevents the correct status code recognition? Does the answer need additional information? Just say - i'll try to provide it.

PS: maybe it is a bug of the new Search Console...? @JohnMu

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

1 Comments

Sorted by latest first Latest Oldest Best

 

@Holmes151

The HTTP response status is indicated by the very first line of the response (the "Status Line") - which you aren't currently showing in the output in your question. For a 404 response, you would expect to see something like:

HTTP/1.1 404 Not Found



status:404



The Status response header is non-standard.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme