Viewing 1 replies (of 1 total)
  • Plugin Author simon.holliday

    (@simonholliday)

    Hi there,

    FlexiCache doesn’t affect expiry time for images which exist on the filesystem, since these are served directly by the web server, not by WordPress.

    If you’re using Apache web server, you can use the ExpiresByType directive in your .htaccess file (or main Apache config file) to set the expiry time for images:

    http://httpd.apache.org/docs/current/mod/mod_expires.html#expiresbytype

    For example, the following directives in your .htaccess will set the expire time for GIF, JPEG and PNG files to one week:

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif A604800
    ExpiresByType image/jpeg A604800
    ExpiresByType image/png A604800
    </IfModule>

    Hope that helps,

    Si.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: FlexiCache] HTTP Expiry time for images.’ is closed to new replies.