Jump to content

Implementing mod_expires

Recommended Posts

I'm wondering whether to use mod_expires in my .htaccess file to cache some of them images i'm using that never update.

If I added this into my .htaccess would it work?

### activate mod_expires

ExpiresActive On

### Expire .gif's 1 month from when they're accessed

ExpiresByType <Directory /home/talkford/public_html/images/forumimages> A2592000

I'm not sure if I've got my coding correct, I basically want to cache images in a certain directory only.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...