adding htacces html browser cache

by Prakash 2013-12-06 16:20:51

To store your static html pages in the client web browser you can edit your .htacess files and set the cache time. Open the .htacess file in the root of your folder and set a time for example 1 minutes for the html file type :


# 1 MIN
<FilesMatch ".(html|htm|php)$">
Header set Cache-Control "max-age=60, private, proxy-revalidate"
</FilesMatch>


This will inform the browser that the next time the same page is requested load it from the local cache instead of requesting the server again.
540
like
0
dislike
0
mail
flag

You must LOGIN to add comments