You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Da...@csiro.au on 2005/03/02 06:46:50 UTC
Altering default HTTP header fields for serving static content
Is there a way to alter the default HTTP header fields when a request is
made to Tomcat for static content? I would like to be able to add the
Cache-Control general header field with value "no-cache" when serving
images so they are not cached on the client side.
Can anyone please help? I've tried looking everywhere but can't find a
solution.
Thanks in advance... David
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Altering default HTTP header fields for serving static content
Posted by Andrew Miehs <an...@2sheds.de>.
If you really want the browser not to cache images, you are better off
putting a timestamp on
the end of the requests - as no-cache does not convince every browser
all of the time...
ie: http://localhost/image.gif?78927842303
On Mar 2, 2005, at 6:46 AM, <Da...@csiro.au> wrote:
> Is there a way to alter the default HTTP header fields when a request
> is
> made to Tomcat for static content? I would like to be able to add the
> Cache-Control general header field with value "no-cache" when serving
> images so they are not cached on the client side.
>
> Can anyone please help? I've tried looking everywhere but can't find a
> solution.
>
> Thanks in advance... David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org