Forum Moderators: phranque

Message Too Old, No Replies

ideal mod_expires settings

         

pixelmade

11:15 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



I've got 2 identical websites hosted on separate servers. When I compare download speed for them, the initial load of a page is about the same, but page reloads are much slower on one of the servers.

The only thing I can think this is being caused by is that one of them doesn't have the correct mod_expires settings... So, for a virtual hoster that will be hosting several websites, what is best settings to have for this? Here's what I'm currently contemplating:

ExpiresActive on
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/gif "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType text/html "access 1 day"
ExpiresByType video/x-ms-wmv "access 1 month"
ExpiresByType video/quicktime "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresDefault "access 2 days"

Any comments?

Also, which realm should this go in?

Cheers,

jj