Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-12 Thread get_sathiya
- From: Luke McLean [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, September 08, 2006 9:02 PM Subject: Re: HTTP 304 - IF_MODIFIED_SINCE Oops, sorry everyone. I didn't realise that this was going out to the whole list! I'f you could contact me directly please Ben

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-10 Thread Martin Gainty
- From: Luke McLean [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, September 08, 2006 9:02 PM Subject: Re: HTTP 304 - IF_MODIFIED_SINCE Oops, sorry everyone. I didn't realise that this was going out to the whole list! I'f you could contact me directly please Ben then I can

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-08 Thread ben short
this message in context: http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6203229 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-08 Thread Luke McLean
(image.getData()); ... -- View this message in context: http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6219133 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-08 Thread Luke McLean
wrote this in his absence). benshort wrote: Hi Luke, This is a litte off topic for the Tomcat usergroup but here you go. -- View this message in context: http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6219200 Sent from the Tomcat - User forum at Nabble.com

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-07 Thread Luke McLean
is serving images from a database. -- View this message in context: http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6203229 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-06 Thread Markus Schönhaber
ben short wrote: Yes you are right, I am trying not to serve resources again if they havent changed. From what I have read I need to set the Last-Modified header on the HttpServletResponse. The client will then send a If-Modified-Since request header the next time it needs that resource. I

HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread benshort
Thanks Ben -- View this message in context: http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6149505 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread Markus Schönhaber
benshort wrote: How do I get the IF_MODIFIED_SINCE header from the HttpServletRequest object? When I use the HttpServletRequest.getHeaderNames() method and iterate through the enumeration I get the following headers only. accept referer accept-language accept-encoding user-agent host

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
I have tried with firefox and ie6. May i ask what you are using? Ben On 9/5/06, Markus Schönhaber [EMAIL PROTECTED] wrote: benshort wrote: How do I get the IF_MODIFIED_SINCE header from the HttpServletRequest object? When I use the HttpServletRequest.getHeaderNames() method and iterate

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread Markus Schönhaber
ben short wrote: I have tried with firefox and ie6. May i ask what you are using? Firefox. May I ask what you are using (i. e. Tomcat version)? You didn't answer my question: Does your browser send an If-Modified-Since Request-Header? On Tomcat 5.5.17 calling this JSP *twice* will cause IE 6

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
Markus, Im using Tomcat 5.5.17. I assumed that my browser would send the If-Modified-Since Request-Header and have tried your jsp page and it does. What I am doing is serving images from a database. Here is what I am doing in my spring controller... protected ModelAndView

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
Markus, I have fixed the problem. I needed to set the contenttype and the contentlength on the HttpServletResponse. Now i see the if-modified-sice header on the second request. Thanks for your input. Regards Ben On 9/5/06, ben short [EMAIL PROTECTED] wrote: Markus, Im using Tomcat 5.5.17.

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread Markus Schönhaber
ben short wrote: Im using Tomcat 5.5.17. I assumed that my browser would send the If-Modified-Since Request-Header and have tried your jsp page and it does. OK, this shows three things: 1. It's much less helpful to assume things than to find out for sure. If you're interested in the exact

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
Ok, I admit I was a bit fast going to the mailing list and I should of done more research. Yes you are right, I am trying not to serve resources again if they havent changed. From what I have read I need to set the Last-Modified header on the HttpServletResponse. The client will then send a