proxy_ignore_headers for specific User-Agent
Hello,
I have setup NGINX Reverse Proxy with Caching via the NGINX Manager of cPanel. The file "/etc/nginx/ea-nginx/cache.json" contains the below lines:
{
"enabled" : true,
"inactive_time" : "15d",
"levels" : "1:2",
"logging" : false,
"proxy_cache_background_update" : "on",
"proxy_cache_lock" : "off",
"proxy_cache_min_uses" : 1,
"proxy_cache_revalidate" : "on",
"proxy_cache_use_stale" : "error timeout http_429 http_500 http_502 http_503 http_504",
"proxy_cache_valid" : {
"200" : "12d",
"301" : "12d",
"302" : "12d"
},
"x_cache_header" : false,
"zone_size" : "200m"
}
I would like to add the directive below but for User-Agents that contain specific strings:
"proxy_ignore_headers" : "Cache-Control"
If this cannot be done via the file "/etc/nginx/ea-nginx/cache.json", is there any other way to customize the configuration in that way?
-
Hey there! Are the details in this post about the customization options helpful for your situation?
https://support.cpanel.net/hc/en-us/community/posts/23152438800279/comments/23154216624919
0
Please sign in to leave a comment.
Comments
1 comment