Need to add a a header when returning an asset using the Play Framework Assets Controller
问题 I need to return pdf files with the header X-Robots-Tag: noindex https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag?hl=de#robots-meta-tag-verwenden Is there a way to do this using the standard play Assets Controller? Took a look inside the source code and the only thing that seems to be configurable is: val configuredCacheControl = config(_.getString("\"assets.cache." + name + "\"")) Thanks 回答1: I might go with Kris's idea. Something kinda like this should get