Web caching and content replication techniques emerged to solve performance problems related to the Web. We propose a generic non-parametric heuristic method that integrates both techniques under a CDN. We provide experimentation showing that our method outperforms the so far separate implementations of Web caching and content replication. Moreover, we show that the performance improvement compared with an existing algorithm is significant. We test all these techniques in a simulation environment under a flash crowd event and a workload of a typical lightweighted CDN operation.