Speed up your website load time by this code
- SEO |
I have found this code online....
Header unset Pragma FileETag None Header unset ETag <IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary Accept-Encoding </FilesMatch> </IfModule> <FilesMatch "\.(gif|jpg|jpeg|png|ico)$"> ExpiresActive On ExpiresDefault "access plus 1 month" </FilesMatch> <FilesMatch "\.(css|js|html?|xml|txt)$"> ExpiresActive On ExpiresDefault "access plus 1 week" </FilesMatch> # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension: <Files *.html> SetOutputFilter DEFLATE </Files>
I have copy pasted it. But a block of code is not under-stable by me..
Here is the block of code I am confused about:
<FilesMatch "\.(css|js|html?|xml|txt)$"> ExpiresActive On ExpiresDefault "access plus 1 week" </FilesMatch>
Hope someone expert will describe this full code nicely.
Thanks
-
Dinospider Banned-
Thanks
{{ DiscussionBoard.errors[6255078].message }} -