How to disable ingress nginx cache for K8S

      How to disable ingress nginx cache for K8S无评论
1. kubectl edit ing {ingress name}
2. Add annotation as below:
nginx.ingress.kubernetes.io/configuration-snippet: >
      more_set_headers “cache-Control: no-cache, no-store”; if ($request_uri ~*
      \.(?:ico|css|js|gif|jpe?g|png|svg|woff2|woff|ttf|eo|mp3|glb)$) {
        more_set_headers “cache-control: public, max-age=2592000”;
      }

发表评论