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

Leave a Reply

Your email address will not be published. Required fields are marked *