Nginx Proxy Caching MP4 Files

Bentok

Member
Jan 14, 2015
22
1
53
cPanel Access Level
Website Owner
Hello,

I had cPanel on centOs 7 with nginx as reserve proxy + cache enabled, cache worked perfectly only caching static content but not big files such as mp4 files, after upgrading to almalinux 8 and reinstalling cpanel, now nginx caches big files big vidoes such as mp4 files. and the cache folder growing in GB.. any advice to prevent that and so that nginx don't cache mp4 files?

Appreciate the advice!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,632
363
cPanel Access Level
Root Administrator
Hey there! The behavior of the EasyApache and Nginx tools is not version-dependent, so moving to a different cPanel version or operating system would not cause a large change in behavior.

Our documentation at NGINX with Reverse Proxy | cPanel & WHM Documentation does state this:

"NGINX reverse proxies to Apache and caches all requests by default."

so any tweaks to that would need to be manually applied to the server.

If the caching isn't behaving how you're expecting on a certain machine it would likely be best to submit a support ticket to our team so we can examine that in real-time on an affected system.