Question: I've added the cache directives to my httpd.conf file but cannot discover how to verify it's actually caching the pages and serving them up. How can I verify this?

I added the cache directives at the server config level (not using VirtualHost) as:

```
CacheEnable disk /
CacheRoot /var/cache
CacheDefaultExpire 3600

```

Answer: 
You can check if your apache is really caching content or not by confirming below points.

1. check size of /var/cache directory. It should be growing in size after some time when there is hit on your apache
2. You can check in logs, there should response code 302 instead of 200.

If you match both these points then there should be working mod\_disk\_cache module.
A simple test to verify a working cache:

* Request a URL, e.g. `curl "http://mydomain/my/page?test_param"`
* Check that the HTTP status code is either 200, 203, 300, 301 or 410 (only those are cached, see <https://httpd.apache.org/docs/2.4/caching.html>)
* Check the cache with htcacheclean, e.g. `htcacheclean -p /var/cache -A|grep 'test_param'`