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”;
      }

About

You may also like...

Your email will not be published. Name and Email fields are required