• Resolved Norm Sash

    (@normsash)


    Hi,

    I’m having trouble getting either .mp4 or .m4v files to cache at all (they all show with NONE set for cache TTL.

    I looked in my htaccess and didn’t see any rules for .m4v files, though there was one for .mp4 (is the .m4v an omission by LiteSpeed and should be there?)

    I added a rule for .m4v, but still, I can’t get .mp4 or .m4v files to cache.

    On the test page you will see that there are three .m4v files that get loaded (you can see it in the browser console > network. What do I need to do to enable cache for videos.

    My current htaccess file is below. (I add the m4v rule after the LiteSpeed section so I wouldn’t edit the LiteSpeed block).

    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ### marker BROWSER CACHE start ###
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/pdf A31557600
    ExpiresByType image/x-icon A31557600
    ExpiresByType image/vnd.microsoft.icon A31557600
    ExpiresByType image/svg+xml A31557600
    
    ExpiresByType image/jpg A31557600
    ExpiresByType image/jpeg A31557600
    ExpiresByType image/png A31557600
    ExpiresByType image/gif A31557600
    ExpiresByType image/webp A31557600
    
    ExpiresByType video/ogg A31557600
    ExpiresByType audio/ogg A31557600
    ExpiresByType video/mp4 A31557600
    ExpiresByType video/webm A31557600
    
    ExpiresByType text/css A31557600
    ExpiresByType text/javascript A31557600
    ExpiresByType application/javascript A31557600
    ExpiresByType application/x-javascript A31557600
    
    ExpiresByType application/x-font-ttf A31557600
    ExpiresByType application/x-font-woff A31557600
    ExpiresByType application/font-woff A31557600
    ExpiresByType application/font-woff2 A31557600
    ExpiresByType application/vnd.ms-fontobject A31557600
    ExpiresByType font/ttf A31557600
    ExpiresByType font/otf A31557600
    ExpiresByType font/woff A31557600
    ExpiresByType font/woff2 A31557600
    
    </IfModule>
    ### marker BROWSER CACHE end ###
    
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    
    #Expires headers configuration added by Speed of Light plugin
    <IfModule mod_expires.c>
       ExpiresActive On
       ExpiresDefault A31557600
       ExpiresByType image/ico "access plus 1 year"
       ExpiresByType image/bmp "access plus 1 year"
       ExpiresByType video/m4v A31557600
    
    </IfModule>
    #End of expires headers configuration

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter Norm Sash

    (@normsash)

    Thanks… I believe this is the report number you are looking for: GSLDZJSE

    Plugin Support qtwrk

    (@qtwrk)

    <FilesMatch ".+\.(mp4|m4v)$">
     Header set Cache-Control "public, max-age=31557600
    </FilesMatch>

    try add this to your .htaccess

    Thread Starter Norm Sash

    (@normsash)

    Thanks… I added that to my htaccess and then cleared all cache. But I’m still not seeing any caching for the .m4v files. This is a strange one…

    Plugin Support qtwrk

    (@qtwrk)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can not get video to cache’ is closed to new replies.