I finally found out why Pecos wasn't allowing browsers to cache images (making for some excruciatingly slow browsing). It turns out that PHP4's built-in sessions automatically send nasty nocache headers by default. You can turn it off with session_cache_limiter(). Now things move along at an acceptable pace.