You just need to add a filter to your web.xml file. This is lifted from a 
SO 
article<http://stackoverflow.com/questions/2789386/liferay-customise-the-web-xml-headerfilter-added-during-portlet-deloyment>.
 
This example just does the *.cache.* files, but adding another filter with 
the proper regex would also handle your *.nocache.* files.

<filter>
    <filter-name>Header Filter</filter-name>
    
<filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
    <init-param>
        <param-name>filter-class</param-name>
        
<param-value>com.liferay.portal.servlet.filters.header.HeaderFilter</param-value>
    </init-param>
    <init-param>
        <param-name>url-regex-pattern</param-name>
        <!-- the following matches everything except files ending .nocache.js  
-->
        <param-value><![CDATA[^.+(?<!nocache\.js)$]]></param-value>
    </init-param>
    <init-param>
        <param-name>Cache-Control</param-name>
        <param-value>max-age=315360000, public</param-value>
    </init-param>
    <init-param>
        <param-name>Expires</param-name>
        <param-value>315360000</param-value>
    </init-param></filter>


Sincerely,
Jospeh

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mTdNG3kPR5QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to