You need to use mod_file_cache which can cache frequently requested files that change very infrequently is a technique for reducing server load. mod_file_cache provides two techniques for caching frequently requested static files. These techniques reduce server load when processing requests for these files by doing part of the work (specifically, the file I/O) for serving the file when the server is started rather than during each request.
WARNING! You cannot use this moule for speeding up CGI / php / perl / python dynamic programs. It can only be used for regular files which are usually served by the Apache core content handler.
How do I configure mod_file_cache?
Open your httpd.conf file, enter:
To cache index.html and faqs.html, enter:
How do I cache all static files in a directory called /kb/?
Try the following code to get listing of all files:
Now open httpd.conf file, using the Include directive:
Save and close the file. Restart httpd: