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

Hardcoded anonymous_hash in FosHttpCache mismatches what is generated by Platform

    XMLWordPrintable

    Details

      Description

      FosHttpCache uses a default, hardcoded user hash for anonymous users to save on performances.

      PR FosHttpCacheBundle#274 added a consistency check on the hash that re-generates the hash using the session in order to prevent inconsistencies with expired / cleared up sessions.

      The hash that gets generated for Platform's anonymous user does not match the hardcoded one. Since it depends on how the anonymous role is configured, it may change on any instance.

      This causes anonymous requests to invalidate cached versions of pages, since the consistency check disables caches / varying.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              bertrand.dunogier@ez.no Bertrand Dunogier
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: