Speed up your website load time by this code

Discussion in 'Search Engine Optimization' started by jewelraz, May 16, 2012.

  1. #1
    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
     
    jewelraz, May 16, 2012 IP
  2. cosmorankings

    cosmorankings Greenhorn

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    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?
     
    cosmorankings, May 16, 2012 IP
  3. jamesjalvi

    jamesjalvi Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    great code :)
    My site change from 5,06 s load time to 1,35 s

    Thanks
     
    jamesjalvi, May 16, 2012 IP
  4. thundertoms

    thundertoms Active Member

    Messages:
    868
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    I have no IDEA :confused:
     
    thundertoms, May 16, 2012 IP
  5. OSSEO

    OSSEO Active Member

    Messages:
    1,430
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    53
    #5
    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 .
     
    OSSEO, May 17, 2012 IP
  6. uoftenwinny

    uoftenwinny Peon

    Messages:
    253
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sorry I don't understand this code.
     
    uoftenwinny, May 18, 2012 IP
  7. sonuking

    sonuking Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i think so first i chech this code
     
    sonuking, May 23, 2012 IP
  8. SarahMcCrary

    SarahMcCrary Greenhorn

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #8
    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.
     
    SarahMcCrary, May 23, 2012 IP