page speed

Discussion in 'Site & Server Administration' started by Dyna, Aug 13, 2012.

  1. #1
    HI!

    I have no idea how to set image cache expiration.
    Google always tells me to improve page speed so i need to set image cache expiration.

    Well my site is written in html.
    Ive done a .htaccess file -no use.

    I tried these:
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    </IfModule>


    AND :

    <IfModule mod_headers.c>
    <filesMatch "\.(gif|jpg|jpeg|png)$">
    Header set Cache-Control "max-age=2419200"
    Header set Expires "Thu, 15 Apr 2112 20:00:00 GMT"
    </filesMatch>
    </IfModule>

    AND THIS:

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html "access plus 1 seconds"
    ExpiresByType image/gif "access plus 1 years"
    ExpiresByType image/jpeg "access plus 1 years"
    ExpiresByType image/png "access plus 1 years"
    ExpiresByType image/x-icon "access plus 1 years"
    ExpiresByType text/css "access plus 1 years"
    ExpiresByType text/javascript "access plus 1 years"
    ExpiresByType application/x-javascript "access plus 1 years"
    ExpiresByType application/x-shockwave-flash "access plus 1 years"
    </IfModule>



    Ive put some meta tags into the html:

    <META content=max-age name=cache-control> <META content="1 month" name=expires>

    It has no use!!!

    Altough the codes work well - the images go to the cache, it seems that google doesnt notice the change!
    Speed insights just tells me the same: set image cache expiration.

    Any idea what to do?
     
    Dyna, Aug 13, 2012 IP
  2. imfusa

    imfusa Active Member

    Messages:
    694
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Hmm, what content management system you use. If you use wordpress than you have the w3 total cache plugin.
     
    imfusa, Aug 14, 2012 IP
  3. Penn Station

    Penn Station Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well read it again the guy says: my site is written in html.

    Type: "improve page speed" in Google and follow.
     
    Penn Station, Aug 17, 2012 IP
  4. jeffsmith

    jeffsmith Member

    Messages:
    203
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Page speed is an important factor because users / visitors don't link slow loading pages.
     
    jeffsmith, Aug 18, 2012 IP
  5. johnfambrini

    johnfambrini Greenhorn

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    16
    #5
    If your site is in html and your site does not have big photos you generally don't have to worry about site speed.
     
    johnfambrini, Aug 18, 2012 IP
  6. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #6
    If the website is made of HTML files the best way to set up cache and cache expiration is by means of meta tags.

    But either controlling cache from the HTML files or doing it via .htaccess, this website has a very complete and informative tutorial with examples that might help, http://www.mnot.net/cache_docs/
     
    Mystique, Aug 18, 2012 IP
    Jim4767 likes this.
  7. eyesight

    eyesight Member

    Messages:
    1,646
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #7
    now wordpress is widely used application for creating website.i have no idea HTML but word press is really good.
     
    eyesight, Aug 23, 2012 IP
  8. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It's more than likely ads on your site that's causing the logjam and you wouldn't want to remove those.
    What's your average load speed?
     
    Steupz, Aug 23, 2012 IP
  9. lorraine02

    lorraine02 Member

    Messages:
    307
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #9
    yes, test the page open speed is so necessary for new page
     
    lorraine02, Aug 23, 2012 IP