How to disable mod_deflate in apache2?

后端 未结 3 1554
深忆病人
深忆病人 2020-12-03 02:19

How can I disable mod_deflate in Apache2

  • For files in a specific directory

OR

  • For all files that have extension of, for example
3条回答
  •  悲哀的现实
    2020-12-03 02:23

    Don't know if this is a general solution, but it worked for me at least, to turn of mod_deflate for .py-files within a .htaccess file in a certain folder:

    SetEnvIfNoCase Request_URI "\.py$" no-gzip dont-vary
    

提交回复
热议问题