atuttle / Taffy

:candy: The REST Web Service framework for ColdFusion and Lucee
http://taffy.io
Other
226 stars 118 forks source link

Support for "X-Robots-Tag" header #417

Open JamoCA opened 3 years ago

JamoCA commented 3 years ago

I noticed that WordPress's API added support for the X-Robots_tag header about 5 years ago and wonder if it's something that should be added as a default Taffy API response header.

While this header can already be manually added as a custom header in the Application.cfc, I'm not aware of any reasons why this wouldn't be beneficial to add as a default.

globalHeaders = {
    "X-Robots-Tag" = "noindex, nofollow, noimageindex"
}

Thoughts?

atuttle commented 3 years ago

I agree that it seems harmless enough, but I wouldn't want to add it without some way to remove it if someone decides they don't want it.