Afficher un message
Vieux 08/02/2005, 19h45   #3
fochie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTML -vs- image cache question

Thanks Nick,

After a little more reading I'm note sure why the solution below
wouldn't solve my problem -

Again, the goal as I see it is to have web cache proxies, and client
browsers, respect the following -

NEVER cache my HTML files
ALWAYS cache my image files when possible

Since we already recompiled our Apache server to include "mod_expires",
I think adding the following initial directives to our Apache config
may accomplish what I'm after -

ExpiresActive on
ExpiresByType text/html "access plus 0 hours"
ExpiresByType image/jpeg "access plus 10 days"
ExpiresByType image/gif "access plus 2 days"
ExpiresDefault "access plus 2 days"

I would look at finer grained cache control via .htaccess and HTTP
headers after judging the effects of the change described above.

Anyone see any problems with this approach ?

Thanks !!

  Réponse avec citation
 
Page generated in 0,05316 seconds with 9 queries