After upgrading from a previous apache2 to 2.0.53 I experience a very strange problem with the module mem_cache
When apache returns a cached page, it has text/plain instead of text/html set and intelligent browsers like firefox will show the source instead of the page itself.
When I first load the page, everything is fine: #wget -S http://mydomain.com/6m/de 1 HTTP/1.1 200 OK 2 Date: Sat, 09 Apr 2005 18:44:26 GMT 3 Server: Apache 4 Expires: Sun, 10 Apr 2005 18:44:26 GMT 5 Content-length: 30260 6 Vary: Accept-Encoding,User-Agent 7 Keep-Alive: timeout=15, max=100 8 Connection: Keep-Alive 9 Content-Type: text/html; charset=UTF-8 but as soon as apache caches the page, the troubles starts: #wget -S http://mydomain.com/6m/de 1 HTTP/1.1 200 OK 2 Date: Sat, 09 Apr 2005 18:39:51 GMT 3 Server: Apache 4 Expires: Sun, 10 Apr 2005 18:36:27 GMT 5 Content-Type: text/plain; charset=ISO-8859-1 6 Content-length: 30260 7 Age: 204 8 Keep-Alive: timeout=15, max=100 9 Connection: Keep-Alive The approiate lines in the logs:[Sat Apr 09 20:43:06 2005] [debug] mod_cache.c(220): cache: running CACHE_OUT filter
[Sat Apr 09 20:43:06 2005] [debug] mod_cache.c(229): cache: serving /6m/de/The html-code itself is created by mod_perl which generates the headers also.
The config is: LoadModule cache_module modules/mod_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so #LoadModule disk_cache_module modules/disk_cache.so MCacheSize 4096 MCacheMaxObjectCount 2000 MCacheMinObjectSize 1 MCacheMaxObjectSize 100000 CacheEnable mem /6m thnx, peter -- mag. peter pilsl goldfisch.at IT-management tel +43 699 1 3574035 fax +43 699 4 3574035 pilsl@xxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx