DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30278>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30278 mod_disk_cache breakes Content-Type for .css files Summary: mod_disk_cache breakes Content-Type for .css files Product: Apache httpd-2.0 Version: 2.0.50 Platform: Other OS/Version: Linux Status: NEW Severity: Major Priority: Other Component: mod_cache AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] After .css file was cached with mod_disk_cache it is served with wrong content type. Instead of "text/css" it's served with "text/plain; charset=UTF-8" Configuration: ... <IfModule mod_cache.c> <IfModule mod_disk_cache.c> CacheRoot "/tmp/abc_static_cache" CacheEnable disk /abc/images CacheEnable disk /abc/htmlarea CacheEnable disk /abc/scripts CacheEnable disk /abc/style </IfModule> </IfModule> ... "/abc" context is referse proxy forward to backend server using following two directives: ... ProxyPass /abc http://10.10.10.10:8080/abc ProxyPassReverse /abc http://10.10.10.10:8080/abc ... Here is the headers printout for very first request (right after clean apache restart with purging of the caches folder): [EMAIL PROTECTED] tmp]$ wget -s https://1.2.3.4/abc/style/common.css ; head common.css; rm -rf common.css --18:04:39-- https://1.2.3.4/abc/style/common.css => `common.css' Connecting to [1.2.3.4]:443... connected. HTTP request sent, awaiting response... 200 OK Length: 10,368 [text/css] 100%[==============================================================================================>] 10,368 105.47K/s ETA 00:00 18:04:40 (105.47 KB/s) - `common.css' saved [10368/10368] HTTP/1.1 200 OK Date: Thu, 22 Jul 2004 23:04:26 GMT Server: Apache/2.0.50 (Fedora) Content-Length: 10368 Last-Modified: Thu, 22 Jul 2004 16:50:00 GMT Accept-Ranges: bytes Content-Type: text/css Vary: Accept-Encoding,User-Agent Keep-Alive: timeout=30, max=100 Connection: Keep-Alive Each subsequent request for the same URL returns following headers: [EMAIL PROTECTED] tmp]$ wget -s https://1.2.3.4/abc/style/common.css ; head common.css; rm -rf common.css --18:04:52-- https://1.2.3.4/abc/style/common.css => `common.css' Connecting to [1.2.3.4]:443... connected. HTTP request sent, awaiting response... 200 OK Length: 10,368 [text/plain] 100%[==============================================================================================>] 10,368 117.73K/s ETA 00:00 18:04:53 (117.73 KB/s) - `common.css' saved [10368/10368] HTTP/1.1 200 OK Date: Thu, 22 Jul 2004 23:04:39 GMT Server: Apache/2.0.50 (Fedora) Accept-Ranges: bytes Content-Length: 10368 Last-Modified: Thu, 22 Jul 2004 16:50:00 GMT Content-Type: text/plain; charset=UTF-8 Age: 17 Keep-Alive: timeout=30, max=100 Connection: Keep-Alive [EMAIL PROTECTED] tmp]$ I can provide more information if needed, feel free to email me for more questions. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
