No, still not work. Infact, mod_cache could work, because it could cache the javascript. But it could not work for dynamic HTTP responses responding to XMLHttpRequests in Ajax technology. So I suspect mod_cache could not support this function. And I need provide such function by myself. I prefer to do it in Apache, a comparatively general way instead of application itself.

Erica

Joachim Zobel wrote:

Am Montag, den 05.03.2007, 22:53 -0800 schrieb Erica Zhang:
header("Cache-Control: public"); // HTTP/1.1
header("Expires: " .gmdate ("D, d M Y H:i:s", time() + 60 * 10). " GMT");
header( "Last-Modified: " .gmdate( 'D, d M Y H:i:s' ). " GMT" );
echo $response;

I am not shure about mod_caches behaviour, but omitting last-modified is
worth a try.

Sincerely,
Joachim


Reply via email to