Paul Wallace wrote:
> If however the client and server have no knowledge of these assets,
> would it not request a fresh copy from the server and return HTTP 200
> for example?
1. Check to see if the file is in your client's cache.
2. Tomcat does nothing with these tags. Your client may ignore the
gt; message without making a copy. Thank you.
>
>
>
> - Original Message -
> From: "Luke McLean" <[EMAIL PROTECTED]>
> To:
> Sent: Friday, September 08, 2006 9:02 PM
> Subject: Re: HTTP 304 - IF_MODIFIED_SINCE
>
>
>>
>> Oops, sorry everyo
-
From: "Luke McLean" <[EMAIL PROTECTED]>
To:
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 di
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 avoid boring
everyone with this topic.
luke dot mclean at boundless dot co dot nz
Thanks comma
Not Luke (because he is embarrassed so an elf mysteriously w
Thanks Ben,
I can follow that logic. I have also found the imageDB sample app in the
Spring distro. I am allowing people to upload an image then resizing it
into a Small, Medium and Large version (I figure it is better to resize and
store rather than resize on every use) however I have saved m
Hi Luke,
This is a litte off topic for the Tomcat usergroup but here you go.
I have added the following to my web.xml
img
org.springframework.web.servlet.DispatcherServlet
1
img
/img/*
My img-servlet.xml
imageController
Hi Ben, I'm starting out to do exactly the same thing and the web is quite
sketchy on how to do it with Spring. Would you mind posting or sending the
controller code that you use to return the image please. I would be very
greatful.
Thanks,
Luke.
benshort wrote:
>
> What I am doing is servi
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.
>
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
If-M
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 r
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.
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 handleRequestInternal
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
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 iterat
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-age
15 matches
Mail list logo