views:

97

answers:

0

I am configuring/creating a new web server and have run into an issue that I cannot seem to resolve.

I am using Cakephp with Apache2 unfortunately on a Windows environment.

When I enable the mod-expires module on our apache instance it causes a delay in the presentation of the new record that was saved before the redirect. It's acting as if it is saving the data after the redirect and subsequent page load. Simply refreshing the page will display the new record.

Here is the configuration of the mod-expires portion of the .conf.

LoadModule expires_module modules/mod_expires.so
ExpiresActive On
ExpiresDefault "access plus 21 days"
ExpiresByType image/gif "modification plus 1 month"
ExpiresByType image/jpg "modification plus 1 month"
ExpiresByType image/x-icon "modification plus 1 year"
ExpiresByType text/css "modification plus 7 days"
ExpiresByType text/js "modification plus 7 days"
ExpiresByType text/htm "access plus 14 days"