Question

The question below,

Primefaces, JQuery script and CSS files loading for each and every page refresh and ajax page update. How to get files from cache instead of downloading for each request.

was asked at the following:

Primefaces script and css file loading for each page refresh

I recommended OmniFaces o:cache component. Can o:cache be used in this case, or is it still best to use servlet filter?

Was it helpful?

Solution

Per OmniFaces <o:cache> showcase page,

The component allows to cache a fragment of rendered markup.

So, I assume the answer to this question is 'no'.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top