Cache assets and only precompile when changed.