Clear cache on nginx server
Solution 1:
for nginx it would be easy
include this in server or location
proxy_cache_bypass $http_upgrade;
proxy_no_cache 1;
proxy_cache_bypass 1;
proxy_redirect off;
proxy_cache off;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires -1;
i used /etc/nginx/nocache.conf with the above content and just using include nocache.conf