You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/10/09 12:44:11 UTC

Tomcat 5.23: caching of css files?

Hi,

I have tomcat 5.23 in ubuntu 7.04, if I update the war file and access it
thru domain name, the css file is not updated even i clear everything in my
browser, if I use the IP to access, the new css file is in effect, does
tomcat 5.23 cache those css files? anyway to clear it? Thanks.
A.C.
-- 
View this message in context: http://www.nabble.com/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13113192
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: Tomcat 5.23: caching of css files?

Posted by Lyallex <ly...@gmail.com>.
Did you clear your browser cache ?

If you access the application via different adresses AFAIK the browser
sees identical files as being different due to those different
addresses (FQDN versus IP address).

I had similar problems that dissapeared after I cleared out the browser cache

It's just a thought.

On 10/9/07, Angelo Chen <an...@yahoo.com.hk> wrote:
>
> Hi Charles,
>
> this is what I did:
>
> 1. shut down tomcat
> 2. delete war and related directory
> 3. copy new war file
> 4. start tomcat
>
> with all above, I'm still getting pages styled with old css file, it will go
> away after several hours. kind of strange.
> A.C.
>
>
> Caldarale, Charles R wrote:
> >
> >> From: Angelo Chen [mailto:angelochen960@yahoo.com.hk]
> >> Subject: Tomcat 5.23: caching of css files?
> >>
> >> I have tomcat 5.23 in ubuntu 7.04, if I update the war file
> >> and access it thru domain name, the css file is not updated
> >> even i clear everything in my browser
> >
> > I haven't tried it, but you may have to restart the webapp in order to
> > get the updated .css file loaded; just changing the .war file may not do
> > that.  Did you try restarting the app manually?  You could provide the
> > name of the .css file as a <WatchedResource> to do it automatically.
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> > and its attachments from all computers.
> >
> > ---------------------------------------------------------------------
> > 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/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13114923
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
>

---------------------------------------------------------------------
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


RE: Tomcat 5.23: caching of css files?

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi Peter,

following your advice, i set the production server to have the same time
zone as my development machine, the problem goes away! Thanks.
A.C.


Peter Crowther wrote:
> 
>> From: Angelo Chen [mailto:angelochen960@yahoo.com.hk] 
>> 1. shut down tomcat
>> 2. delete war and related directory
>> 3. copy new war file
>> 4. start tomcat
>> 
>> with all above, I'm still getting pages styled with old css 
>> file, it will go away after several hours. kind of strange.
> 
> Is that a browser issue?  What happens if you force a full refresh of
> the page in the browser, or clear the browser's cache and reload?
> 
> Is it a file timestamp issue?  Do you have clock skew or timezone
> differences between your development and production systems, such that
> the revised CSS "looks" older than it really is?
> 
> 		- Peter
> 
> ---------------------------------------------------------------------
> 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/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13117886
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


RE: Tomcat 5.23: caching of css files?

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Angelo Chen [mailto:angelochen960@yahoo.com.hk] 
> 1. shut down tomcat
> 2. delete war and related directory
> 3. copy new war file
> 4. start tomcat
> 
> with all above, I'm still getting pages styled with old css 
> file, it will go away after several hours. kind of strange.

Is that a browser issue?  What happens if you force a full refresh of
the page in the browser, or clear the browser's cache and reload?

Is it a file timestamp issue?  Do you have clock skew or timezone
differences between your development and production systems, such that
the revised CSS "looks" older than it really is?

		- Peter

---------------------------------------------------------------------
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


RE: Tomcat 5.23: caching of css files?

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi Charles,

this is what I did:

1. shut down tomcat
2. delete war and related directory
3. copy new war file
4. start tomcat

with all above, I'm still getting pages styled with old css file, it will go
away after several hours. kind of strange.
A.C.


Caldarale, Charles R wrote:
> 
>> From: Angelo Chen [mailto:angelochen960@yahoo.com.hk] 
>> Subject: Tomcat 5.23: caching of css files?
>> 
>> I have tomcat 5.23 in ubuntu 7.04, if I update the war file 
>> and access it thru domain name, the css file is not updated
>> even i clear everything in my browser
> 
> I haven't tried it, but you may have to restart the webapp in order to
> get the updated .css file loaded; just changing the .war file may not do
> that.  Did you try restarting the app manually?  You could provide the
> name of the .css file as a <WatchedResource> to do it automatically.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> 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/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13114923
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


RE: Tomcat 5.23: caching of css files?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Angelo Chen [mailto:angelochen960@yahoo.com.hk] 
> Subject: Tomcat 5.23: caching of css files?
> 
> I have tomcat 5.23 in ubuntu 7.04, if I update the war file 
> and access it thru domain name, the css file is not updated
> even i clear everything in my browser

I haven't tried it, but you may have to restart the webapp in order to
get the updated .css file loaded; just changing the .war file may not do
that.  Did you try restarting the app manually?  You could provide the
name of the .css file as a <WatchedResource> to do it automatically.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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