biola / turnout

Turnout makes it easy to put Rack apps into maintenance mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an option to set the `Retry-After` directive

omederos opened this issue · comments

I was going to use this gem to put my website into maintenance mode, but according to the README (and source code), it only returns a 503, but it is recommended to include the Retry-After header, so Googlebot and others know when they should try to crawl the website again.

Perhaps it is straightforward to include that http header on the response?

That's a good idea and should be easy to implement. I'll see if I can get some time to work on it or I'd gladly accept a pull request.

@adamcrown I added a pull request, but I'd appreciate if you tell me how to run the tests of the project to make sure I adjust them, nothing else is broken and that it is working as expected.

Here it is: #22

Thanks in advance.

I updated my pull request. Tomorrow I'll try on my website the new code from my fork.

This was implemented in #22