File Caching

We can cache the file using htaccess so that we can improve
the perfomace of a website

General Format

<FilesMatch “.(Extenstion of the file to be cached)$”>
	Header set Cache-Control “max-age=cache time″
</FilesMatch>

Example

<FilesMatch “.(html|htm)$”>
	Header set Cache-Control “max-age=43200″
</FilesMatch

.htaccess

A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration.The original purpose of .htaccess – reflected in its name – was to allow per-directory access control, by for example requiring a password to access the content. Nowadays however, the .htaccess files can override many other configuration settings including content type and character set, CGI handlers, etc.These files are placed inside the web tree, and are able to override a subset of the server’s global configuration for that directory, and all sub-directories