Optimization test tools show that gzip compression is not enabled for a domain, when nginx is enabled

Follow

Comments

7 comments

  • Avatar
    Khang Tran

    In my case, Smart static files processing is checked but it's not allowed to change, why is it?

     

    0
    Comment actions Permalink
  • Avatar
    Anna Morozyuk

    Hello @Khang Tran,

    That is because Proxy Mode is disabled, and thus domain is using nginx only not using Apache at all.
    If you want Apache gzip compression to be used - enable proxy mode.
    Otherwise, enable compression for nginx: How to enable gzip compression in nginx on a Plesk server.

    0
    Comment actions Permalink
  • Avatar
    Kingsley Felix

    Can i disable Smart static files processing and Serve static files directly by nginx but still use Nginx caching under wordpress tool kit?

    0
    Comment actions Permalink
  • Avatar
    Maxim Krasikov

    Hello @iamkingsleyf !

    Yes, you can disable options Smart static files processing and Serve static files directly by nginx but keep Enable nginx caching option enabled.

    0
    Comment actions Permalink
  • Avatar
    Kingsley Felix

    alright thanks

    0
    Comment actions Permalink
  • Avatar
    Jorge Salazar

    Hi @Kuzma Ivanov

     

    Why does the recommended way is to Enable gzip compression directly in Nginx?

    What advantage would have one over the other?

     

    0
    Comment actions Permalink
  • Avatar
    Alexandr Nikolaenko

    Hello @Jorge

    In this way, compression will be enabled for both nginx and Apache web servers. And enabled options Smart static files processing and Serve static files directly by nginx continue to increase server response time, because requests are not proxied to Apache, but handled by nginx directly.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request