Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-85654

Including timestamp mark in documents and media preview and download url

    Details

      Description

      There are different types of Documents and Media url, and one of them is pointing to the latest version of the document. This is useful when the user wants to use the latest available version, no matter which version number it is. The current format of the url is as follows:

      /documents/groupId/folderId/filename/uuid/{version}

      where version is optional and it's used to use an specific version number. 

      One drawback of that kind of urls is that it can be cached by browsers, cdn, proxies etc and even though the document can be updated and a new version uploaded, the browsers cdns and proxies won't realize of this and they cannot send the latest version available (they will use the cache version instead). 

      There is a mechanism that is currently in place to ensure that when a new version is uploaded, the latest content is delivered, no matter whether it was cached or not. This mechanism is only used by images at the moment. The mechanism consists on adding a timestamp parameter to the url based on the modified date of the latest file version. Because of this, when a new version is uploaded, the timestamp will change to reflect the latest value so the browser, cdn proxy etc will consider it a new request and it won't use the cache value. 

      The goal of this story is to extend the scope of the current behaviour so it not only applies to images but to any document stored in Documents and Media (no matter if it's an image or a PDF for example). 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nikki.prudencio Nikki Prudencio
              Reporter:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Recent user:
              Lee Jordan
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.0 DXP FP60
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.10 DXP FP3
                  7.1.1 CE GA2
                  7.1.10.1 SP1
                  7.1.X
                  Master