summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2007-02-02 17:11:10 +0000
committerMichael Wallner <mike@php.net>2007-02-02 17:11:10 +0000
commitcd2554343bb0bc0e08d6ac53b76f609dc0cb2a29 (patch)
tree2ac3d535638d56db9fa57e0c3ec420aedef043d9 /ext/zlib/zlib.c
parenta7ade0d5aed601a9afea71a098ad35326b731192 (diff)
downloadphp-git-cd2554343bb0bc0e08d6ac53b76f609dc0cb2a29.tar.gz
- add note about the past for the future, see http://bugs.php.net/?id=40310&edit=1
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index ed863cdf67..5cb700a9ad 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -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);
}