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