You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Epithemeus <ep...@googlemail.com> on 2009/08/06 17:06:40 UTC
Re: disable caching of static files in tomcat 5.5
Hi Joerg,
I am facing the same issue with Tomcat 6.0 and caching of files. I'd really
appreciate it if anyone could explain how caching could be disabled.
Many thanks!
Christopher Schultz-2 wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Joerg,
>
> Joerg Endrullis wrote:
>> $ ln -s x.jpg a.jpg;
>> $ wget http://localhost:8180/a.jpg?time=0;
>> $ rm a.jpg;
>> $ ln -s y.jpg a.jpg;
>> $ wget http://localhost:8180/a.jpg?time=1
>
> My brain hurts. How about:
>
> $ wget -O t0.jpg http://localhost:8180/a.jpg?time=0
> $ wget -O t1.jpg http://localhost:8180/a.jpg?time=1
>
> ...and then compare the two.
>
>> You will see that both downloaded images a.jpg.1 and a.jpg.2 are equal
>> to x.jpg,
>
> Er, where did a.jpg.1 and a.jpg.2 come from? I think you are confusing
> yourself with the symlinks, wget, etc. even if Tomcat does have a
> problem. Simplifying your process will surely help.
>
> Is a.jpg changing on the server at some point? You say this is a static
> resource, but you never specified that you were changing the remote file
> at all. When/how does that happen?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkjRey0ACgkQ9CaO5/Lv0PAUvgCgi7ziGeHwW9LMGocay39egavO
> a4gAoLX5EmwTEcKbZnwK+bXOUl4nzEB+
> =mdAN
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/disable-caching-of-static-files-in-tomcat-5.5-tp19509596p24848333.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: disable caching of static files in tomcat 5.5
Posted by Mark Thomas <ma...@apache.org>.
Epithemeus wrote:
> Thanks Mark.
>
> I went through the documentation but the problem persists. I am using Tomcat
> 6.0 and have tried including cachingAllowed="false" in
> $CATALINA_HOME/conf/context.xml. This does not seem to work.
>
> There is no other context.xml file currently defined in directory structure
> anywhere. Any ideas on why this still isn't working?
None. It works for me.
Are you sure it is Tomcat doing the caching?
Mark
>
> Thanks.
>
>
> Mark Thomas-18 wrote:
>> Epithemeus wrote:
>>> Hi Joerg,
>>>
>>> I am facing the same issue with Tomcat 6.0 and caching of files. I'd
>>> really
>>> appreciate it if anyone could explain how caching could be disabled.
>> Read the docs. I'd start with this:
>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>>
>> Mark
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: disable caching of static files in tomcat 5.5
Posted by Pid <pi...@pidster.com>.
On 21/05/2010 15:22, haveaguess wrote:
>
> Ive got the same problem - did anyone figure out what is happening and why
> tomcat is caching files behind symlinks?
This thread is 9 months old.
You might consider starting a new thread, be specific about your
versions & platform.
p
> Epithemeus wrote:
>>
>> Thanks Mark.
>>
>> I went through the documentation but the problem persists. I am using
>> Tomcat 6.0 and have tried including cachingAllowed="false" in
>> $CATALINA_HOME/conf/context.xml. This does not seem to work.
>>
>> There is no other context.xml file currently defined in directory
>> structure anywhere. Any ideas on why this still isn't working?
>>
>> Thanks.
>>
>>
>> Mark Thomas-18 wrote:
>>>
>>> Epithemeus wrote:
>>>> Hi Joerg,
>>>>
>>>> I am facing the same issue with Tomcat 6.0 and caching of files. I'd
>>>> really
>>>> appreciate it if anyone could explain how caching could be disabled.
>>>
>>> Read the docs. I'd start with this:
>>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>>>
>>> Mark
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>
Re: disable caching of static files in tomcat 5.5
Posted by haveaguess <be...@rbs.com>.
Ive got the same problem - did anyone figure out what is happening and why
tomcat is caching files behind symlinks?
Epithemeus wrote:
>
> Thanks Mark.
>
> I went through the documentation but the problem persists. I am using
> Tomcat 6.0 and have tried including cachingAllowed="false" in
> $CATALINA_HOME/conf/context.xml. This does not seem to work.
>
> There is no other context.xml file currently defined in directory
> structure anywhere. Any ideas on why this still isn't working?
>
> Thanks.
>
>
> Mark Thomas-18 wrote:
>>
>> Epithemeus wrote:
>>> Hi Joerg,
>>>
>>> I am facing the same issue with Tomcat 6.0 and caching of files. I'd
>>> really
>>> appreciate it if anyone could explain how caching could be disabled.
>>
>> Read the docs. I'd start with this:
>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>>
>> Mark
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
--
View this message in context: http://old.nabble.com/disable-caching-of-static-files-in-tomcat-5.5-tp19509596p28634513.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: disable caching of static files in tomcat 5.5
Posted by Epithemeus <ep...@googlemail.com>.
Thanks Mark.
I went through the documentation but the problem persists. I am using Tomcat
6.0 and have tried including cachingAllowed="false" in
$CATALINA_HOME/conf/context.xml. This does not seem to work.
There is no other context.xml file currently defined in directory structure
anywhere. Any ideas on why this still isn't working?
Thanks.
Mark Thomas-18 wrote:
>
> Epithemeus wrote:
>> Hi Joerg,
>>
>> I am facing the same issue with Tomcat 6.0 and caching of files. I'd
>> really
>> appreciate it if anyone could explain how caching could be disabled.
>
> Read the docs. I'd start with this:
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/disable-caching-of-static-files-in-tomcat-5.5-tp19509596p24867271.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: disable caching of static files in tomcat 5.5
Posted by Mark Thomas <ma...@apache.org>.
Epithemeus wrote:
> Hi Joerg,
>
> I am facing the same issue with Tomcat 6.0 and caching of files. I'd really
> appreciate it if anyone could explain how caching could be disabled.
Read the docs. I'd start with this:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org