0 Replies Latest reply on Nov 16, 2011 7:51 AM by poornima.abhi

    Caching css files in browser using filter

    poornima.abhi

      Hi All,

       

           I have a web application deployed in Gatein 3.1. I have created a custom skin for the application.The css files are loaded using gatein-resources.xml.For that to work properly, in web.xml, i have added the filter, ResourceRequestFilter.

       

        <filter>

             <filter-name>ResourceRequestFilter</filter-name>

             <filter-class>org.exoplatform.portal.application.ResourceRequestFilter</filter-class>

        </filter>

       

        <filter-mapping>

              <filter-name>ResourceRequestFilter</filter-name>

              <url-pattern>/*</url-pattern>

        </filter-mapping>

       

           Now, i want to cache js,images and css files in browser side.For that, I added another filter in web.xml.The filter class implements javax.servlet.Filter.I could cache js, images on adding this filter, but css files are NOT cached.When ResourceRequestFilter was removed from web.xml, css files are cached properly.But, the skin is not working.How could i make both work properly, ie caching css files and custom skin at the same time.

       

      Plz help...