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



      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:


      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). 


        Issue Links



              nikki.prudencio Nikki Prudencio
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              0 Vote for this issue
              3 Start watching this issue




                  Version Package
                  7.0.0 DXP FP60
                  7.0.0 DXP SP9
                  7.1.10 DXP FP3
                  7.1.1 CE GA2