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

Custom HTTP headers create duplicate values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              nuno.oliveira-obsolete@ez.no 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