fix javascripts and stylesheets when using cache backend