]> granicus.if.org Git - php/commitdiff
- add note about the past for the future, see http://bugs.php.net/?id=40310&edit=1
authorMichael Wallner <mike@php.net>
Fri, 2 Feb 2007 17:11:10 +0000 (17:11 +0000)
committerMichael Wallner <mike@php.net>
Fri, 2 Feb 2007 17:11:10 +0000 (17:11 +0000)
ext/zlib/zlib.c

index ed863cdf678b2e6642606ac45864c0001e1d1f87..5cb700a9ad94821de81c0e2e00c4c2fc85bcd087 100644 (file)
@@ -218,6 +218,8 @@ int php_zlib_output_handler(void **handler_context, php_output_context *output_c
                                        deflateEnd(&ctx->Z);
                                        return FAILURE;
                        }
+                       /* "Vary: Accept-Encoding" header sent along uncompressed content breaks caching in MSIE,
+                          so let's just send it with successfully compressed content, see http://bugs.php.net/40325 */
                        sapi_add_header_ex(ZEND_STRL("Vary: Accept-Encoding"), 1, 1 TSRMLS_CC);
                        php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE, NULL TSRMLS_CC);
                }