You could set the environment variable no-gzip for that directory/type of file:
# for URL paths that begin with "/foo/bar/"
SetEnvIf Request_URI ^/foo/bar/ no-gzip=1
# for files that end with ".py"
<FilesMatch \.py$>
SetEnv no-gzip 1
</FilesMatch>
More Related Contents:
- How can I implement rate limiting with Apache? (requests per second)
- Apache2 ProxyPass for Rails App Gitlab
- Authorization header missing in django rest_framework, is apache to blame?
- Need to allow encoded slashes on Apache
- How can I get Apache gzip compression to work?
- How can I pre-compress files with mod_deflate in Apache 2.x?
- Apache won’t follow symlinks (403 Forbidden)
- Can’t remove Server: Apache header
- Apache is not sending 304 response (if mod_deflate and AddOutputFilterByType is enabled)
- How do I configure Apache2 to allow multiple simultaneous connections from same IP address?
- .htaccess: how to restrict access to a single file by IP?
- URL rewriting for different protocols in .htaccess
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- Apache 301 Redirect and preserving post data
- What is apache’s maximum url length?
- Removing the .php extension with mod_rewrite
- @font-face fonts only work on their own domain
- Understanding Apache’s access log
- Parse HTML as PHP
- Redirect to Apache built-in 404 page with mod_rewrite?
- htaccess redirect all pages to single page
- How to debug an apache virtual host configuration?
- apache to tomcat: mod_jk vs mod_proxy
- Multiple RewriteRules for single RewriteCond in .htaccess
- How to allow Cross domain request in apache2
- Apache .htaccess redirect to HTTPS before asking for user authentication
- HTML5 Server-Sent Events prototyping – ambiguous error and repeated polling?
- Apache rewrite rules not being applied for angularjs
- what is the use of “~” tilde in url? [closed]
- Do I need to convert .CER to .CRT for Apache SSL certificates? If so, how?