Move digest to resource folders itself
Clen code
Implement new caching