[HttpCache] added a test (cached content should be kept after purging)

closes #6830