Hello all, 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> Code (markup): You have to copy paste it inside .htaccess which is located in file-manager with the rest of your website 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> Code (markup): What does this mean, all my css, js, html, xml files will be expired after 7 days from search results/google? Hope someone expert will describe this full code nicely. Thanks
That might work but still: Why do you guys search for methods to increase page loading times with Wordpress when the easiest way to increase page loading times is not using Wordpress at all?
Why you putting codes for fast speed. instead of compressing images and remove unnecessary scripts & flash work ? in this way you can get more speed than this code .
There was a survey that 70% of the US visitors dont visit the website again if it takes more then 7 seconds to load. I should do some research on this code before installing it on my website.