slow response - hangs sometimes

Discussion in 'Site & Server Administration' started by salivan, Mar 18, 2010.

  1. #1
    Hi, I need help!

    Problem is that my site sometimes, like every 6 links or so starts to respond slowly. What I see is endlessly loading screen, and I have to refresh or click link again to bring it back.

    I have no idea what is causing this, but I have feeling it's the server. Unfortunately host admins cannot help, I talked with 3 guyz at hostgator, 2 of them saw replicated my problem but weren't able to help - saying server is fine. 1 of them with whom I talked today, said I had hallucinations :)))

    anyways, to replicate problem, go to sandrophoto.com and click around posts, just try to click 5-6 links or posts - and you will see not responding site. Please help me diagnose this sever issue, I want to know if it's me only, or also my visitors have issues, and if so I need to do something asap!
     
    salivan, Mar 18, 2010 IP
  2. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #2
    You may want to implement image caching, as I noticed you run a site about photography. Here's a quick way you can implement this in your .htaccess file:

    # Caching Settings
    <IfModule mod_headers.c>
    <FilesMatch "\.(flv|gif|jpe?g|png|ico|swf)$">
    Header set Cache-Control "max-age=2592000"
    </FilesMatch>
    <FilesMatch "\.(js|css|pdf|txt)$">
    Header set Cache-Control "max-age=604800"
    </FilesMatch>
    <FilesMatch "\.htm(l)?$">
    Header set Cache-Control "max-age=43200"
    </FilesMatch>
    </IfModule>
     
    zacharooni, Mar 18, 2010 IP