save latest optimized js hash in redis