cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh CSS without restarting tomcat?

zladuric
Champ on-the-rise
Champ on-the-rise
Hello,

I'm using Alfresco Share 4.2 to make a customized dashlet with a datatable. When I open the page source, this is my CSS entry:

<style type="text/css" media="screen">
      @import url("/share/res/components/dashlets/site-themes_a5b1628a44985dece0d7f2ca03e7def.css");
</style>

Now, if I change the CSS entry, the changes won't take effect if I refresh the browser cache. Whatever I do, I get the same file to import.
The only thing that got me the new CSS was restarting Share - which is really cumbersome.

Is there a better way to refresh the CSS files?
3 REPLIES 3

jcdurand
Champ in-the-making
Champ in-the-making
Hi there,
If you're still stuck with this, here is the best solution I found.
–> go to the WebScript Home Console (/share/page/index)
–> then click on the "Clear Dependency Caches" button at the lower part of the page.

This should invalidate the cache and therefore reload static files.

Cheers

zladuric
Champ on-the-rise
Champ on-the-rise
Nope, this still doesn't work for me. I still get the same
@import url("/share/res/components/functions/functions_90b811d474edefcbe1cc4784a1a34bb.css");


Well, that's not solved.

zladuric
Champ on-the-rise
Champ on-the-rise
I mean, I still have to redeploy Share webapp to pickup the fresh static files. I'm tempted to put it all inline while in dev phase, and then just leave the test for the end.