Hi Thiago, I don't think that fully explains the behavior I'm seeing - the request is always a 304, but in the first trial of 3 requests the request filter ran each time, in the second trial (after killing and restarting jetty) it never ran. Again, this is only for static files - for pages it would always run.
I've also just confirmed that this happens even for normal return code 200 requests. In the first run, I request layout.css, img01.jpg, and img02.jpg. I get a 304, 200, 200 and the request filter never runs. I killed jetty and started it again, and requested layout.css, img03.jpg, and img04.jpg. Again I get a 304, 200, and a 200, but the request filter runs each time: 2011-02-20 22:05:54.116::INFO: Started SelectChannelConnector@0.0.0.0:8080 [INFO] Started Jetty Server 0:0:0:0:0:0:0:1 - - [21/Feb/2011:03:06:01 +0000] "GET /myapp5.2.4/layout/layout.css HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13" 0:0:0:0:0:0:0:1 - - [21/Feb/2011:03:07:15 +0000] "GET /myapp5.2.4/layout/images/img01.jpg HTTP/1.1" 200 752 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13" 0:0:0:0:0:0:0:1 - - [21/Feb/2011:03:07:27 +0000] "GET /myapp5.2.4/layout/images/img02.jpg HTTP/1.1" 200 3878 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13" 2011-02-20 22:09:39.228::INFO: Started SelectChannelConnector@0.0.0.0:8080 [INFO] Started Jetty Server [INFO] AppModule.TimingFilter Request time: 7 ms 0:0:0:0:0:0:0:1 - - [21/Feb/2011:03:09:41 +0000] "GET /myapp5.2.4/layout/layout.css HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13" [INFO] AppModule.TimingFilter Request time: 0 ms 0:0:0:0:0:0:0:1 - - [21/Feb/2011:03:09:53 +0000] "GET /myapp5.2.4/layout/images/img03.jpg HTTP/1.1" 200 2913 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13" [INFO] AppModule.TimingFilter Request time: 1 ms 0:0:0:0:0:0:0:1 - - [21/Feb/2011:03:10:01 +0000] "GET /myapp5.2.4/layout/images/img04.jpg HTTP/1.1" 200 3287 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13" Any ideas? I'm not sure why this is happening. On Sun, Feb 20, 2011 at 5:38 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 19 Feb 2011 14:50:03 -0200, Donny Nadolny <donny.nado...@gmail.com> > wrote: > > It's making the request each time (and getting a 304: not modified). >> > > So your RequestFilter wasn't invoked because the request wasn't really > executed (i.e. processed again). This is part of HTTP: browsers can ask for > an URL to be fetched again if it wasn't changed since some given time. > Summary: what you're experiencing is not a bug and it's absolutely correct. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >