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”;
}
沟通交流合作请加微信!