The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

problems with mod_expires

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

  1. Cloak

    Cloak Active Member

    Joined:
    Jun 19, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I have mod_expires turned on in httpd.conf:

    LoadModule expires_module libexec/mod_expires.so
    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)
    http://smut-site.com/expire/index.html

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

Share This Page