add cache rules on images