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.
```
CacheRoot "/var/cache/folder"

```

check 

> 
> /var/log/apache2/error.log 
> 
> 
> 

if there any permission error, it wont write in the Directory, give apache2 permissions to that directory like below

```
mkdir -p /var/cache/folder/
chown root:www-data /var/cache/apache2/mod_cache_disk/ -R
chmod 775 /var/cache/apache2/mod_cache_disk/ -R

```

access the pages check in folder there will be directory structure will appear and there are two files one for header and another for data. if it will show like the data is caching other wise configuration something missing, i configured this is working, cached pages also showing 200 status in log in my case