Transfer-Encoding header prevents Chrome rendering
-
We run a largish WP multisite (over 400 sites). One of our sites was not able to render specific pages in Chrome and Safari; rendered fine in FF. Unfortunately it is a protected page so no-one here can view the url. This is the error message in Chrome:
This site can’t be reached
The webpage at https://wsguide.usc.edu/wordpress-info/wordpress-archiving/ might be temporarily down or it may have moved permanently to a new web address.
ERR_INVALID_CHUNKED_ENCODINGI found in the meta-wp-cache-<identifier>.php file that this header caused the problem:
“Transfer-Encoding”:”Transfer-Encoding: chunked”Removing that header from the json string, made the page renderable in Chrome/Safari. I had to hack wp-cache-phase1.php::wp_cache_serve_cache_file():: line 972
if( strpos( $header, ‘Last-Modified:’ ) === false && strpos( $header, ‘Transfer-Encoding:’ ) === false)to make it work in our environment.
=== WP Super Cache ===
Contributors: donncha, automattic, kraftbj
Tags: performance,caching,wp-cache,wp-super-cache,cache
Tested up to: 4.8.1
Stable tag: 1.5.5
- The topic ‘Transfer-Encoding header prevents Chrome rendering’ is closed to new replies.