Many improvements on assets cache handler