Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
well ...no... first evaluate, then assign. and constants are int by default. I think C/C++ would have the same problem... On Sun, Jan 16, 2011 at 1:25 PM, André Warnier wrote: > Ran Berenfeld wrote: > >> thanks :) silly me. problem solved >> > > It's more silly Java. It could figure out tha

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread André Warnier
Ran Berenfeld wrote: thanks :) silly me. problem solved It's more silly Java. It could figure out that the left side wants a long, couldn't it ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additiona

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
thanks :) silly me. problem solved On Sun, Jan 16, 2011 at 12:21 PM, Konstantin Kolinko wrote: > 2011/1/16 Ran Berenfeld : > >// cache for 1 year > >private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365); > > With this sample program: > public class foo{ > public static v

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Konstantin Kolinko
2011/1/16 Ran Berenfeld : >    // cache for 1 year >    private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365); With this sample program: public class foo{ public static void main(String[] a){ long _cacheTime = (1000 * 60 * 60 * 24 * 365); System.out.println("_cacheTime: " + _cacheTime