If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By TheGAME1264

Thread: Need help on how to add "expires" headers to my images

  1. #1
    Junior Member
    Join Date
    Apr 2016
    Hobart, TAS
    Member #

    Need help on how to add "expires" headers to my images


    I ran an seo check on my site for all things "on page" and it came back with an issue regarding expired headers for my images. It tells me to do the following :

    How to fix - Image Expires Tag

    In order to reduce the number of HTTP requests, you can use the HTTP Expires header to set an expiration time for your images or any other content type. You can add the following lines into your .htaccess file:

    <IfModule mod_expires.c>
    ExpiresActive on

    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"

    I have gone into the htaccess file and edited it with the above but its still showing me the same error message regarding expired image headers. I'm no techy so I could have edited it wrong/put it in the wrong place!

    Can anyone help me do this and set up the expired image headers correctly as its driving me bonkers !



  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Not from USA
    Member #
    2783 times
    That code will only work if the mod_expires module is installed on your server.

    mod_expires - Apache HTTP Server Version 2.4 <-- this is the module. If you're not sure what it means, the best thing you can do is ask your host if it's installed and if not, can they please install it?
    dory and Bitpalace like this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Apr 2016
    Hobart, TAS
    Member #
    Cool ill do that and see if they can help thanks !

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Tags for this Thread

All times are GMT -6. The time now is 03:38 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: