4 Replies Latest reply on Oct 21, 2011 6:45 AM by nandhana03

    GateIn js caching in browser

    nandhana03

      hii....

               We r deploying our application in GateIn.. On logging to our application, we see that our js files are loaded each time.... seems browser is not caching these js files..... y is it so ?

        • 1. Re: GateIn js caching in browser
          vstorm83

          Have you run portal in non-dev mode, and how do you deploy your js files ? if you run gatein with tomcat, you can find 2 file gatein.sh and gatein-dev.sh --> define a system propeperty : -Dexo.product.developing=true --> dev mode

           

          Only in non-dev mode, Javascript files deploy by using gatein-resources.xml will be merged in to one file (merged.js) and it will be cached in browser after the first request

          in DEV mode, JS files are not merged and not cached in browser

          • 2. Re: GateIn js caching in browser
            nandhana03

            hiii......

                  thnx for ur reply..... I didn't get what actually u meant by Dev mode ....... can u plz explain ........

            • 3. Re: GateIn js caching in browser
              vstorm83

              Run in DEV mode: you run tomcat/bin/gatein-dev.sh --> there is an System Property defined here (-Dexo.product.developing=true)

              in tomcat/bin/gatein.sh --> you can see -Dexo.product.developing=fase

               

              If you run JBoss server, you can add this system property to jboss/bin/run.conf to control the portal running mode

              • 4. Re: GateIn js caching in browser
                nandhana03

                hiiii....

                       thnx for ur reply...... we had an issue with login... our application is taking too much time to login.... so we doubt whether this caching'll affect our application performance... so I think being in non dev mode'll rectify our issue.....