-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP status: Use 503 Service Unavailable #19
Comments
Yes, it should, probably. But for perfection you might also want a (customizable) You can do that with the HTTP Response Header Mappings extension. In the config file you could set: '503' => 'HTTP/1.1 503 Service Unavailable',
'ra1h' => 'Retry-After: 3600',
'ra1d' => 'Retry-After: 86400',
'ra1w' => 'Retry-After: 604800', then add the needed page types (e.g. |
@michael-e I think this extension should do it. |
Yep. Solution 1It might at least create some (documented) array in the config file. Instead of this: 'maintenance_mode' => array(
'enabled' => 'no',
), it could be: 'maintenance_mode' => array(
'enabled' => 'no',
'status_header' => 'HTTP/1.1 503 Service Unavailable',
'retry_after_header' => 'Retry-After: 3600',
), If a header is not found in the config, it should not be sent. Solution 2To keep things simple, we might add the 503 header only. If someone needs more advanced headers (like above), he can still use the HTTP Response Header Mappings extension. I prefer solution 2. |
Me too. And the status_header can only be the numeric status code since we already have the mapping to string. |
Agreed. |
This is a good idea! I'm thinking we can send |
I like this idea. As long as the config's |
Sane default, please. |
The right value might be 15 minutes (if you take your site down for an upgrade or similar) or several days (during development). I don't see a sane default. |
Anyone still into this? |
@animaux I am still into it, but I have other things more urgent... |
I gave up on Maintenance Mode and I just modify .htaccess in cases where I need Thanks for self-assigning, @nitriques. |
@nitriques thanks, it’s not urgent but a typical nice-to-have :) |
Indeed ;) |
Hi,
For anonymous visitors, should not Maintenance Mode throw an HTTP status of 503 Service Unavailable? I'm thinking for search engines in particular so they know not to try to reindex a maintenance page for every URL in one's site as currently it appears to send 200 OK.
Thanks!
The text was updated successfully, but these errors were encountered: