Static files served by 'tools.staticdir' cause decompression errors in browsers when both 'tools.gzip' and 'tools.caching' are on, but only when served from the cache.
I think I found a bug when both 'tools.gzip' and 'tools.caching' are on, for static files served by 'tools.staticdir'. Static content is placed uncompressed in the cache, but incorrectly marked as compressed, and the result is that only the first serving is send correctly compressed to the client. Subsequent requests cause errors in the browser.
By the way, no exceptions are thrown by CherryPy.
I have attached a small test program which demonstrates this problem. Reloading the static file in the browser should produce the problem.