Reduce number of HEAD request by caching