• Resolved wittich

    (@wittich)


    Hi, I was just wondering why there is max age for video/ogg files. When I checked my .htaccess it was missing there. So I added it manually.

    AddType video/ogg .ogv

    ExpiresByType video/ogg A31536000

    But it will get eventually overwritten by W3 Total Cache (Version 2.1.0).

    Is this a bug?

    Regards Valentin

    • This topic was modified 3 years, 10 months ago by wittich.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wittich

    Thank you for your inquiry and I am happy to assist you with this.
    W3TC does not add those rules. The reason why the rules are overwritten is that you are adding them within the W3TC rules so you should add the rules outside of #W3TC
    Thanks!

    Thread Starter wittich

    (@wittich)

    Hi Marko, your are write, I could have set them outside the W3TC part.

    Still I believe they should be part op the W3TC Plugin.

    Here my patch

    diff --git a/BrowserCache_Environment.php b/BrowserCache_Environment.php
    index 636b7c0..4c225b3 100644
    --- a/BrowserCache_Environment.php
    +++ b/BrowserCache_Environment.php
    @@ -105,7 +105,8 @@ class BrowserCache_Environment {
     		unset( $other_compression['mid|midi'] );
     		unset( $other_compression['mov|qt'] );
     		unset( $other_compression['mp3|m4a'] );
    -		unset( $other_compression['mp4|m4v'] );
    +        unset( $other_compression['mp4|m4v'] );
    +		unset( $other_compression['ogv'] );
     		unset( $other_compression['mpeg|mpg|mpe'] );
     		unset( $other_compression['png'] );
     		unset( $other_compression['ra|ram'] );
    diff --git a/inc/mime/other.php b/inc/mime/other.php
    index e84f83d..cd5613d 100644
    --- a/inc/mime/other.php
    +++ b/inc/mime/other.php
    @@ -35,7 +35,8 @@ return array(
     	'odp' => 'application/vnd.oasis.opendocument.presentation',
     	'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
     	'odt' => 'application/vnd.oasis.opendocument.text',
    -	'ogg' => 'audio/ogg',
    +    'ogg' => 'audio/ogg',
    +	'ogv' => 'video/ogg',
     	'pdf' => 'application/pdf',
     	'png' => 'image/png',
     	'pot|pps|ppt|pptx' => 'application/vnd.ms-powerpoint',
    diff --git a/ini/apache_conf/mod_expires.conf b/ini/apache_conf/mod_expires.conf
    index b8898f6..ea81bae 100644
    --- a/ini/apache_conf/mod_expires.conf
    +++ b/ini/apache_conf/mod_expires.conf
    @@ -36,6 +36,7 @@ ExpiresByType audio/midi A31536000
     ExpiresByType video/quicktime A31536000
     ExpiresByType audio/mpeg A31536000
     ExpiresByType video/mp4 A31536000
    +ExpiresByType video/ogg A31536000
     ExpiresByType video/mpeg A31536000
     ExpiresByType application/vnd.ms-project A31536000
     ExpiresByType application/x-font-otf A31536000
    diff --git a/ini/apache_conf/mod_mime.conf b/ini/apache_conf/mod_mime.conf
    index 32d1bf3..a2e8d76 100644
    --- a/ini/apache_conf/mod_mime.conf
    +++ b/ini/apache_conf/mod_mime.conf
    @@ -32,6 +32,7 @@
       AddType video/quicktime .mov .qt
       AddType audio/mpeg .mp3 .m4a
       AddType video/mp4 .mp4 .m4v
    +  AddType video/ogg .ogv
       AddType video/mpeg .mpeg .mpg .mpe
       AddType application/vnd.ms-project .mpp
       AddType application/x-font-otf .otf
    • This reply was modified 3 years, 10 months ago by wittich.
    • This reply was modified 3 years, 10 months ago by wittich.
    • This reply was modified 3 years, 10 months ago by wittich.
    Thread Starter wittich

    (@wittich)

    @vmarko is there a reason why video/ogg is not part of the W3TC plugin?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wittich

    Thank you for your question.
    This is simply because of the usage of Ogg format in the past and there were no requests for this.
    YOu are more than welcome to create a pull request for this in our Github repository, once the developers review the pull request they will decide if it should be implemented.
    Thanks!

    Thread Starter wittich

    (@wittich)

    Okay done https://github.com/W3EDGE/w3-total-cache/pull/336

    Let’s see if it gets accepted.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Missing vdieo/ogg in htaccess’ is closed to new replies.