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

HttpCache: Make X-User-Hash the same for "Anonymous" role and varnish.

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: High High
    • Customer request, 5.4.5
    • dev-master, 5.4.4
    • Caching, Misc
    • None

    Description

      The eZ Publish documentation and varnish vcl sample specify a default user hash to use for anonymous users.

      In varnish, this value is 38015b703d82206ebc01d17a39c727e5, and used when there is no session cookie present in the request headers.
      (ref: https://github.com/ezsystems/ezplatform/blob/master/doc/varnish/vcl/varnish4.vcl )

      However, eZ Publish responds differently to the X-User-Hash generation request, using the method which is to hash the current user's roles/assignments - which results in a different user hash being generated.

      If lazy sessions are used for anonymous the effect in varnish hit ratios is negligible, but may have some impact if anonymous sessions are used.
      In any case, for consistency, both methods should return the same hash.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: