According to the FB SDK I must include a channel file with the appropriate headers.
Being a major NOOB and a Rails not PHP developer I have no idea how to do this.
Use the response.headers
hash in your controller. Docs
Example from your example
cache_expire = 60*60*24*365
response.headers["Pragma"] = "public"
response.headers["Cache-Control"] = "max-age=#{cache_expire}"
response.headers["Expires"] = ... # I'll leave this one to you.
# (Or ask another Q.)
# gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');