caching - Zend apache2 mod_expires will not work on os x? -
caching - Zend apache2 mod_expires will not work on os x? -
im coming form iis background apache2 still new me. have zend server version of apache2 running on os x snow leopard.
im trying enable client-side caching on local machine can test caching of rest server calls.
here have in httpd.conf
loadmodule expires_module modules/mod_expires.so #<ifmodule expires_module> expiresactive on expiresbytype text/html a2592000 expiresbytype application/json a2592000 expiresbytype image/gif a2592000 expiresbytype image/jpeg a2592000 expiresbytype image/png a2592000 expiresbytype text/css "access plus 1 minutes" expiresbytype text/javascript "access plus 1 minutes" expiresbytype application/x-javascript "access plus 1 minutes" expiresbytype text/xml "access plus 1 minutes" #</ifmodule>
that took me while working is, headers have not changed @ all. instance, here rest headers.
date thu, 14 jul 2011 20:34:06 gmt server apache/2.2.15 (unix) php/5.3.5 mod_ssl/2.2.15 openssl/0.9.8o x-powered-by php/5.3.5 zendserver/5.0 set-cookie zdedebuggerpresent=php,phtml,php3; path=/ expires thu, 19 nov 1981 08:52:00 gmt cache-control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma no-cache content-length 430 keep-alive timeout=5, max=99 connection keep-alive content-type application/json
and heres caching tab in firebug
last modified thu jul 14 2011 16:34:06 gmt-0400 (edt) lastly fetched thu jul 14 2011 16:34:06 gmt-0400 (edt) expires wed dec 31 1969 19:00:00 gmt-0500 (est) info size 430 fetch count 4 device memory
so can see, no caching. header response similar on info types.
any help appreciated. has been pretty maddening.
caching apache2 zend-server-ce mod-expires
Comments
Post a Comment