szepeviktor / w3-total-cache-fixed

A community driven build of W3 Total Cache. The aim is to continuously incorporate fixes, improvements, and enhancements over the official WordPress release of W3 Total Cache.
https://github.com/szepeviktor/w3-total-cache-fixed/releases
MIT License
237 stars 47 forks source link

Unable to cache .webm files #573

Open Fleuv opened 6 years ago

Fleuv commented 6 years ago

Quiet a new video container is not known to w3tc, I'm talking about .webm. Currently it's not implemented into the list of mime types (would probably fit nicely inside mime/other.php) thus it also wouldn't be able to cache files with such an extension.

Please consider adding a configuration option for it.

Fleuv commented 6 years ago

Consider the following patch, this would probably be the simplest fix but the least user friendly solution.