Skip to content

Apache Configuration

dwdyer edited this page Apr 11, 2013 · 3 revisions

Use Apache's mod_expires module to set the expiry header for the generated page so that browsers don't cache it for longer than its intended lifetime.

<VirtualHost *:80>
    ServerName news.example.com
    DocumentRoot /var/www/<zeitgeist-web-root>

    ExpiresActive On
    ExpiresByType text/html "modification plus 30 minutes"
</VirtualHost>

This example expires the page 30 minutes after it is generated. This is ideal if your cron job regenerates the page every half hour.

Clone this wiki locally