.htaccess Cache lifetime

Ok, so I have my .htaccess set for "ExpiresActive On"and everything is working fine BUT the following will not have an "A2678400" attached to it.

Is there anything I can force to set the freshness on them?

http://java2.techandgamingnews.com/.../heading-bg-2.gif (expiration not specified)
http://java2.techandgamingnews.com/.../redvsblue_wide11-81824_60x60.jpg (expiration not specified)
http://techandgamingnews.com/.../bg.png (expiration not specified)
http://techandgamingnews.com/.../sprite.png (expiration not specified)
http://www.pti.edu/.../buzz_feedburner_logo.jpg (expiration not specified)

  • Kimberly
    • Champion of Loops

    Hey Dalton,

    I'm afraid the image links are all coming up as not found

    And I'm not quite sure what you are asking here, did you need to exclude those particular files or file types?

    You can expire by type:

    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000

    if that helps any :slight_smile:

    A bit more info would be helpful!

    Kimberly

  • Troy
    • Site Builder, Child of Zeus

    Kimberly,

    the images didn't have the full URL that is my mistake.

    image1

    image2

    the 3rd images is now set correctly which was a jpg.

    I have my expires set to:

    ExpiresByType image/svg+xml A2678400
        ExpiresByType image/bmp A2678400
        ExpiresByType image/gif A2678400
        ExpiresByType image/x-icon A2678400
        ExpiresByType image/jpeg A2678400
        ExpiresByType image/png A2678400
        ExpiresByType image/svg+xml A2678400
        ExpiresByType image/tiff A2678400

    So with that being said, I am not sure why the 2 images are not being wrote correctly..

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.