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

Using Assetic versioning (for CDN/RP cache busting) breaks Platform Admin UI

    Details

      Description

      Assetic bundle (since version 2.7) give us the opportunity to add a query parameter to bust CDN or Reverse Proxy cache as described here : https://symfony.com/doc/2.8/reference/configuration/framework.html#version

      But once activated on eZ Platform instance it breaks the loading of javascript files required for the Admin UI

      Steps to reproduce :
      1. In *config.yml* add the folowing lines :

      assets:
              version: 'v001'
      

      2. Try to login to the Admin UI
      3. Login form not showing

        Activity

        Hide
        André Rømcke added a comment - - edited

        PR's have been merged.

        Doc: We can document how to configure asset versioning so people can take advantage of this for use when on CDN, especially useful for people on eZ Platform Cloud for instance.

        Also worth documenting that as of 1.13, 1.x backend ui will allow caching of assets for improved startup loading time if asset versioning is configured.

        Show
        André Rømcke added a comment - - edited PR's have been merged. Doc: We can document how to configure asset versioning so people can take advantage of this for use when on CDN, especially useful for people on eZ Platform Cloud for instance. Also worth documenting that as of 1.13, 1.x backend ui will allow caching of assets for improved startup loading time if asset versioning is configured.
        Hide
        Michał Szołtysek added a comment -

        QA Approved during PR phase with 1.7.6 & 1.12.1.

        Show
        Michał Szołtysek added a comment - QA Approved during PR phase with 1.7.6 & 1.12.1.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yannick Olympio
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: