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

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: dev-master, 5.4.4
    • Fix Version/s: Customer request, 5.4.5
    • Component/s: Caching, Misc
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: