Как заблокировать индексацию Google с помощью Rails? - PullRequest
0 голосов
/ 05 августа 2020

Я использую response.headers["X-Robots-Tag"] = 'none' в своем контроллере, я не хочу блокировать индексацию (робот) для всех представлений, только часть

def test

response.headers["X-Robots-Tag"] = 'none'

end

, но с curl -I localhost:80/ я получаю

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 200 OK
Cache-Control: max-age=0, private, must-revalidate
Referrer-Policy: strict-origin-when-cross-origin
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-Request-Id: afbf3664-1a9e-4ac1-84f3-bf2e5e59d69d
X-Download-Options: noopen
ETag: W/"47c1a0ec835d708f87117ff1e698485a"
X-Frame-Options: SAMEORIGIN
X-Runtime: 0.003978
X-Content-Type-Options: nosniff
Date: Tue, 04 Aug 2020 16:37:27 GMT

Я не вижу X-Robots-Tag ??

...