where a request is made for an exclude browser pattern parameter. like the author this is essential functionality for me, as i would like to use this filter to compress css and js without ie5/6 throwing a wobbly.
can you tell me if the patch has been implemented in the latest jar pjl-comp-filter-1.6.5 ? and if so what is the final syntax for excluding ie5 and ie6?
many thanks,
ben
btw: if it's possible just to exclude ie5 and ie6 sp1 that'd be even better.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
i read
http://sourceforge.net/tracker/index.php?func=detail&aid=1747155&group_id=110411&atid=656216
where a request is made for an exclude browser pattern parameter. like the author this is essential functionality for me, as i would like to use this filter to compress css and js without ie5/6 throwing a wobbly.
can you tell me if the patch has been implemented in the latest jar pjl-comp-filter-1.6.5 ? and if so what is the final syntax for excluding ie5 and ie6?
many thanks,
ben
btw: if it's possible just to exclude ie5 and ie6 sp1 that'd be even better.
in answer to my own question... in case it's of use to others.
yes the exclude browser pattern parameter is implemented in 1.6.5 and it is using regexp, example xml below
<filter>
<filter-name>CompressingFilter</filter-name>
<filter-class>com.planetj.servlet.filter.compression.CompressingFilter</filter-class>
<init-param>
<param-name>excludeUserAgentPatterns</param-name>
<param-value>.*MSIE [56].*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CompressingFilter</filter-name>
<url-pattern>*.css</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CompressingFilter</filter-name>
<url-pattern>*.js</url-pattern>
</filter-mapping>
in this example i am using the filter to serve compressed javascript and css files to everyone except users of ie5 or ie6.
hth
ben