Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

problems with mod_expires

Discussion in 'General Discussion' started by Cloak, Dec 2, 2003.

  1. Cloak

    Cloak Active Member

    Jun 19, 2003
    Likes Received:
    Trophy Points:
    I have mod_expires turned on in httpd.conf:

    LoadModule expires_module libexec/
    AddModule mod_expires.c

    I have the following in my .htaccess file:

    # Cache images
    ExpiresActive On
    ExpiresByType image/gif "now plus 1 day"
    ExpiresByType image/jpeg "now plus 1 day"
    ExpiresByType image/png "now plus 1 day"
    ExpiresByType image/jpg "now plus 1 day"

    When you go to this url, for example, the image doesn't show up in the cache, nor does it show the expired date as now plus 1 day. As you can see, it is calling the same image from both html files, so it should be cached. It appears to work in Firebird and Mozilla, but not in IE.

    (No adult material visible at this link)

    Any help would really be appreciated.
    #1 Cloak, Dec 2, 2003
    Last edited: Dec 2, 2003

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice