Cartika

Welcome, Guest Login

Support Center

Enable mod_expires in your hosting account

Last Updated: Jun 09, 2014 06:18PM EDT
Because we do not enable mod_expires at the global level, you need to enable it in your .htaccess file. You can enable it on a per-directory basis and it applies recursively.

This example enables mod_expires for a set of common image types and CSS files:



<IfModule mod_expires.c>
    # Activate mod_expires for this directory
    ExpiresActive on

    # locally cache common image types for 7 days
    ExpiresByType image/jpg "access plus 7 days"
    ExpiresByType image/jpeg "access plus 7 days"
    ExpiresByType image/gif "access plus 7 days"
    ExpiresByType image/png "access plus 7 days"

    # cache CSS files for 24 hours
    ExpiresByType text/css "access plus 24 hours"
</IfModule>

More info on this can be found in the Apache Mod_Expires documentation

Contact Us

sales@cartika.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete