• Resolved sbw_masc

    (@sbw_masc)


    Hi there,

    after enabling the page cache my page gets destroyed. It only displays cryptic characters:
    https://imgur.com/70hNyP8

    At the top part of the screenshot you can see the “normal” view and in the second, lower part the source code.
    It doesn’t matter if I change the caching method to “Disk: Basic” or
    “Disk: Enhanced”. Also the debug mode doesn’t change anything. What can I do to find out where the problem is?

    Greetings

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having the same issue, I can’t figure it out. Would love someone to answer this?

    Thread Starter sbw_masc

    (@sbw_masc)

    Is there any way to find out why the page crashes? Something like enabling a special debugging mode?

    It seems to be a gzip related issue.

    Server returns gzipped content from the cache but does not return “Content-Encoding: gzip” header;

    Browser receives gzipped content but does not know that the content is gzipped.

    Possibly some of rewrite rules or some directives in the W3TC created (modified) .htaccess file is not supported by your server. Possibly ForceType directive in htaccess file is not accepted by your server.

    You should try to find out all directives in .htaccess are working. Look at server error logs or contact with your server administrator.

    You can turn off gzip from w3tc browser cache options but it causes a significant performance decrease.

    https://superuser.com/questions/443952/firefox-shows-chinese-strange-encoding-characters-on-pages

    Thread Starter sbw_masc

    (@sbw_masc)

    Thanks a lot!

    That helped me a lot. I found a custom gzip compression in the functions.php

    // enable php gzip-compression
    function wp_gzip ()
    {
    	ob_start('ob_gzhandler');
    }
    add_action('init','wp_gzip');

    After removing this part it worked perfectly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page Cache destroying the entire page’ is closed to new replies.