Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2008 at 16:01 UTC
Updated:
6 May 2008 at 16:23 UTC
This is a spin off from this infra issue http://drupal.org/node/255204
When a site is put offline, the responses have an HTTP code of 200, and hence search engines will index the offline page. This is not desirable for obvious reasons.
What we need to do is send a 503 and a Retry-After message when a site is offline. This way, (well behaved) search engines would not index the offline page.
If no one else gets to this I will roll a patch for it.
Comments
Comment #1
gregglesHeaders from a test site in "offline" mode.
We're sending the correct HTTP 503 code, it's just the (lower priority) "Retry-After" that needs to be added.
From my Ubuntu7.10 localhost using Firefox LiveHTTPHeaders extension:
IMO, we actually should not add a Retry-After. Some sites will stay in maintenance mode for a long time. The way to get the Retry-After "right" would be to ask users to specify when they expect to be back online but that overly clutters the UI.
If we set the Retry-After to "1 hour after entering maintenance mode" or some other made up value, then that might be wrong as well...better to just not send it than to send the wrong value.
So, I set this to closed as both "fixed already" for part of the idea and "won't fix" for the other part.