Hi @twthindia, I hope you are doing great.
This should help you out. This code will specify caching rules for any .mp4 files. It should be copied at the bottom of your .htaccess file.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType video/mp4 "access plus 1 year"
</IfModule>
<ifModule mod_headers.c>
<filesMatch ".(mp4)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
</ifModule>
Make sure to create a backup of your .htaccess file just to be safe, and if you are unable to see it, consult your hosting provider or developer on how you can edit this file.
I hope this helps, have a nice day,
Andrija
Thanks, but I am in a nginx server.
There is no .htaccess file
-
This reply was modified 5 years, 8 months ago by
twthindia.