adds cache on static resources