apachegzipmod-deflate

how to tell mod_deflate is disabled in apache?


Is there a line for .htaccess that can tell mod_deflate is disabled on Apache? Something like this:

<!IfModule mod_deflate.c>

Solution

  • You're almost there with the exclamation point.

    The correct syntax is <IfModule !mod_deflate.c>

    Further info: Apache documentation.