Seat Expiration time on images in wordpress

Discussion in 'WordPress' started by karunverma, May 5, 2011.

  1. #1
    Hi,

    I have a website in wordpress. I checked the page speed with Google Page Speed Tool, and as per the tool, expiration time is not set on the images.

    I am not a developer, so, can anyone suggest me how to set the expiration time on the images.

    Thanks in Advance
     
    karunverma, May 5, 2011 IP
  2. viruthagiri

    viruthagiri Active Member

    Messages:
    232
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    95
    #2
    Just paste the code in your .htaccess file
     
    viruthagiri, May 9, 2011 IP
  3. karunverma

    karunverma Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #3
    Hi,

    I have pasted the code to the .htaccess file, but it does not seems to work for me. My site shows "500 internal error" after adding this code. Can you please let know where to place this code in the .htaccess file?

    TYA
     
    karunverma, May 11, 2011 IP
  4. viruthagiri

    viruthagiri Active Member

    Messages:
    232
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    95
    #4
    Try only this code. Not everything
     
    viruthagiri, May 12, 2011 IP
  5. karunverma

    karunverma Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #5
    I have added that code in .htaccess file and this time site is working fine, but still expiration is not set for the images.
     
    karunverma, May 15, 2011 IP
  6. viruthagiri

    viruthagiri Active Member

    Messages:
    232
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    95
    #6
    But thats the only way i know to set expiration. Make sure you included the image extension in the htaccess file
     
    viruthagiri, May 18, 2011 IP
  7. karunverma

    karunverma Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #7
    Hmmm...I'v included the image extension in the .htaccess file, but still not working. Anyway, thanks for your help, I will keep trying to fix it and will let you know if found some other solution for the same. Thanks :)
     
    karunverma, May 18, 2011 IP
  8. viruthagiri

    viruthagiri Active Member

    Messages:
    232
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    95
    #8
    You are welcome
     
    viruthagiri, May 19, 2011 IP