Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15548

Add X-Robots-Tag: noindex, nofollow to PaaS Page Delivery API responses

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • 15.4.0
    • None
    • Quasar
    • Quasar C7-23 Dev
    • Undetermined
    • Small (1-2)

    Description

      Contrary to SaaS, for PaaS we should only add

      X-Robots-Tag: noindex, nofollow
      

      to the Page Delivery API responses : not to other PaaS responses.

      Therefor, a different impl then for SaaS is needed

      QA Testing

      The HAP should NOT have header responses

      X-Robots-Tag: noindex, nofollow
      

      for normal cms or /site freemarker template sites or for binaries

      For 'delivery API responses' however, the response should contain the header

      X-Robots-Tag: noindex, nofollow
      

      This can be validated by starting community HAP and add to _http://localhost:8080/cms/console/?1&path=/hst:hap/hst:hosts/dev-localhost/localhost/hst:root_

      hst:pagemodelapi: deliveryapi
      

      and then access http://localhost:8080/site/deliveryapi and assert the response header 'X-Robots-Tag: noindex, nofollow' is present.

      When configuring on _http://localhost:8080/cms/console/?1&path=/hst:hap/hst:hosts/dev-localhost/localhost/hst:root_ also:

      hst:responseheaders: ['X-Robots-Tag: test', 'X-Robots-Tag-Test: test']
      

      then the response for http://localhost:8080/site/deliveryapi should still have response header 'X-Robots-Tag: noindex, nofollow' present (and also 'X-Robots-Tag-Test: test')

      Attachments

        Activity

          People

            smudgal Shikha Mudgal
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: