Make an exception for NGINX on specific files

Apr 14, 2016
13
3
53
Greece
cPanel Access Level
Root Administrator
I have a wordpress site that is supported by cpanel and using nginx. It generally works fine, but I need to exclude a few xml files from nginx cache. I've excluded them perfectly from cloudflare and everything but NGINX insists on caching them for weeks on end. They are getting refreshed every 15 minutes so that causes many inconsistencies.

Is there a way to exclude specific directories or even specific files from NGINX cache?
 

ServerHealers

Well-Known Member
Sep 21, 2015
100
57
78
India
cPanel Access Level
Root Administrator
  • Like
Reactions: cPRex