Googlebot receiving missing template error for an existing template

后端 未结 4 1307
甜味超标
甜味超标 2021-02-01 19:56

In the last couple of days, we have started to receive a missing template error when the google bot attempts to access our main home page (welcome/index). I have been staring at

4条回答
  •  无人及你
    2021-02-01 20:44

    the interesting part in the error that you posted is :formats=>["*/*;q=0.9"]

    the rails-app tries to find a template for the format "*/*;q=0.9" which is not going to work.

    i guess that google is somehow using this as a format query parameter like welcome?format=*/*;q=0.9

    afaik latest rails versions will just render a 406 in those cases.

提交回复
热议问题