fixes caching issue of static resources
di usage