Primefaces script and css file loading for each page refresh

UI Components for JSF
Post Reply
Javaprakash
Posts: 3
Joined: 31 Oct 2012, 09:33

31 Oct 2012, 09:44

Hi Dudes,

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.

Regards,
Jayaprakash

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

31 Oct 2012, 13:24

Javaprakash wrote:How to get files from cache instead of downloading for each request.
OmniFaces cache component
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

31 Oct 2012, 13:33

This is not PF related, configure your JSF implementation to add appropriate cache headers.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

31 Oct 2012, 13:52

smithh032772 wrote:
Javaprakash wrote:How to get files from cache instead of downloading for each request.
OmniFaces cache component
how is this related to resource request?
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

31 Oct 2012, 13:53

optimus.prime wrote:This is not PF related, configure your JSF implementation to add appropriate cache headers.
+1

Otherwise your a servlet filter to set these headers.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

31 Oct 2012, 15:18

optimus.prime wrote:This is not PF related, configure your JSF implementation to add appropriate cache headers.
See the following:

http://stackoverflow.com/questions/3374 ... er-caching

http://stackoverflow.com/questions/2563 ... -before-th
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests