|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: HTTP Caching Header Aware Servlet FilterI just read over your changes - it looks excellent. You've cleaned it up
nicely. My use of SimpleDateFormat is threadsafe. I synchronize on its use so I don't have to create new instances every time (preventing some garbage collector thrashing). However, that's a very minor detail, and I have no idea if synchronizing on one instance or creating a new one per request is faster. Thanks for including my work, ~Craig > Craig > > I have added your filter, along with some tests. > > Changes I have made: > > 1) SimpleDateFormat is not threadsafe as used. Fixed > 2) Removed dep on Apache classes > 3) Added tests, doco and made cacheName and blocking timeout > configurable > > I will be putting this out as ehcache-web.1.6-beta1 today or tomorrow. > > On 14/02/2009, at 4:38 PM, Craig Andrews wrote: > >> I recently implemented a servlet filter that extends the >> SimplePageCachingFilter, adding support for the ETags, Last- >> Modified, and >> Expires HTTP headers. I think this filter would benefit many of >> Ehcache's >> users - for my project, it enabled us to leverage Apache's mod_cache, >> eliminating many hits to Tomcat completely. >> >> I've posted the code on my blog - can you please consider including >> in a >> future version of Ehcache? >> >> http://candrews.integralblue.com/2009/02/http-caching-header-aware-servlet-filter/ >> >> Thanks! >> ~Craig >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> ehcache-list mailing list >> ehcache-list@... >> https://lists.sourceforge.net/lists/listinfo/ehcache-list >> >> > > Regards > > Greg Luck > > web: http://gregluck.com > skype: gregrluck > yahoo: gregrluck > mobile: +61 408 061 622 > > ------------------------------------------------------------------------------ _______________________________________________ ehcache-list mailing list ehcache-list@... https://lists.sourceforge.net/lists/listinfo/ehcache-list |
| Free embeddable forum powered by Nabble | Forum Help |