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

          Yannick Roger (Inactive) logged work - 29/Oct/13 7:37 PM
          • Time Spent:
            6 hours
             

            .

          Yannick Roger (Inactive) logged work - 30/Oct/13 1:00 AM
          • Time Spent:
            6 hours
             

            .

          Yannick Roger (Inactive) logged work - 04/Nov/13 12:19 PM
          • Time Spent:
            2 hours
             

            .

          Yannick Roger (Inactive) logged work - 08/Nov/13 1:00 AM
          • Time Spent:
            5 hours
             

            .

          Yannick Roger (Inactive) logged work - 12/Nov/13 12:29 PM
          • Time Spent:
            2 hours
             

            .

          Pedro Resende (Inactive) logged work - 18/Nov/13 10:19 AM
          • Time Spent:
            2 hours
             

            Analyse and reproduce issue, write test case and verify the issue has been fixed after applying the patch

            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