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

Response TTL should not depend on X-User-Hash

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.3
    • Component/s: Caching
    • Labels:
      None
    • Environment:

      n/a

      Description

      In the default view controller, setting the max age Cache-Control HTTP header is dependent on the request setting X-User-Hash. While context-aware cache and max age are related, they should be separate issues.

      Some concrete reasons for treating them separately:

      • In some cases the management of TTL is deferred to a separate team who is in charge of Apache or Varnish, not eZ Publish.
      • For dev / debug purposes you want to see the TTL being used
      • You should be able to set TTL regardless of whether your reverse proxy is setting a default X-User-Hash

        Activity

        Hide
        Peter Keung added a comment -
        Show
        Peter Keung added a comment - Pull request: https://github.com/ezsystems/ezpublish-kernel/pull/809
        Show
        Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/1d3099bb232ab2b3f8a4dc5430bd5096ff5b5b34

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Keung
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: