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

3.x forward compatibility: Provide abstracted way to vary by User Context hash

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 3.0.0-beta5
    • None
    • None

    Description

      3.x changes to use FOS HttpCache's header for user context hash, which is good as we then drop something which was different from upstream (due to us introducing this first before contributing it to FOS.. anyway).

      This breaks any previous eZ user land code using this:

      $response->setVary('X-User-Hash');
      

      Such code will currently have to be changed to:

      $response->setVary('X-User-Context-Hash');
      

      It might be a good idea to introduce an abstraction for this on ezplatform-http-cache 0.9 and up, so people can prepare for this change.

      Alternative is to contribute some sort of abstraction for this in FOSHttpCache, but then it will be 3.x only.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.romcke-obsolete@ez.no André Rømcke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: