Home Guides Glossary

Enabling mod_Expires with Your Hosting Account

Mod_expires is an Apache Web server module installed on all of our Linux hosting accounts by default and supports all mod_expires functionality. For more information, see What is mod_expires?

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.

Our environment uses the vendor-provided code from Apache for mod_expires. Current Apache HTTPD documentation is accurate for using .htaccess files with our hosting accounts.

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>

For more information, see Apache's mod_expires documentation.

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates. Play Video - Demo

Quick Shopping Cart

Build and run your own successful online store in minutes. You're just five easy steps away! Shopping Cart works with Google® and eBay® Play Video

cPanel Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate

Copyright © 2005 - 2022. All rights reserved. Privacy Policy