Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21853

Custom HTTP headers create duplicate values

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1, 5.2-alpha1
    • Component/s: None
    • Labels:
      None
    • Environment:

      eZ Publish 5.1 Platform with symfony stack

      Description

      Setting custom headers in the site.ini.append.php file:

      [HTTPHeaderSettings]
      CustomHeader=enabled
      HeaderList[]
      HeaderList[]=Cache-Control
       
      Cache-Control[]
      Cache-Control[/]=public, max-age=1800, smax-age=1800
      

      Generates a: "Cache-Control: public, max-age=1800, smax-age=1800, must-revalidate, no-cache, private"
      header instead of just "Cache-Control: public, max-age=1800, smax-age=1800".

      Further Notes:

      When viewed under Google Chrome, the headers are displayed as:

      Cache-Control:must-revalidate, no-cache, private
      Cache-Control:public, max-age=1800, smax-age=1800
      

      The first line appears to originate from PHP's built-in session.cache_limiter

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/606
          Show
          Yannick Roger (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/9f7688b3ae38521657f6a82e07ff2a4aef9fd9c4
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 7 hours
                2d 7h