Home » Wordpress » how to disable gzip compression for mp4

how to disable gzip compression for mp4

Posted by: admin November 30, 2017 Leave a comment


I am trying to stop gzip compression on my wordpress blog because if i post a mp4 video even with using the software qtindexswapper it still loads the whole thing before i can play it. I have tried all kinds of different code in my .htaccess file to disable gzip but it just doesnt work. Any ideas?

For example here is some of the code i have tried in my .htaccess where the videos are stored

SetEnv no-gzip dont-vary

RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]

SetEnvIfNoCase Request_URI .mp4$ no-gzip dont-vary


Do you try ?

SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary## Heading ##

And see: How to disable Apache gzip compression for some media files in .htaccess file?