Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2602

Cache filtered resources in a thread-safe Map contained in the ServletContext

    Details

      Description

      This task involves using a thread-safe Map (possibly ConcurrentHashMap) in order to cache filtered resources, such as the PrimeFaces JS resources (FACES-2563 / ResourceHandlerLiferayImpl.java) and RichFaces CSS/JS resources (ResourceHandlerOuterImpl.java).

      Performance can be improved by filtering the resources only once and storing them in a cache, rather than filtering them for each request.

      The task also involves making sure that the bridge setting the appropriate response headers to ensure that client-side caching is working correctly. For more information, see ResourceHandler.userAgentNeedsUpdate(FacesContext) and Resource.getResponseHeaders().

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-ext-5.0.1