<p>We have the page which has some of the larger Javascript files. When we hit the page, all the small files get downloaded. However, one of the large files was not downloaded fully and failed with <strong>net::ERR_HTTP2_PROTOCOL_ERROR</strong> most of the time. We need to open the page using only a VPN connection as it does not open to all.</p>
<p>Just to add, the Nginx ingress controller is used with the following settings for that ingress:</p>
<pre><code>    nginx.ingress.kubernetes.io/configuration-snippet: |
      gzip on;
      gzip_types text/plain text/css image/png application/javascript;
      if ($request_uri ~* \.(js|css|gif|jpeg|png)) {
        expires 1M;
        add_header Cache-Control &quot;public&quot;;
      }
    nginx.ingress.kubernetes.io/http2-push-preload: &quot;false&quot;
    nginx.ingress.kubernetes.io/proxy-body-size: 500M
    nginx.ingress.kubernetes.io/proxy-bufferings: &quot;off&quot;
    nginx.ingress.kubernetes.io/proxy-connect-timeout: &quot;36000&quot;
    nginx.ingress.kubernetes.io/proxy-max-temp-file-size: &quot;0&quot;
    nginx.ingress.kubernetes.io/proxy-read-timeout: &quot;36000&quot;
    nginx.ingress.kubernetes.io/proxy-send-timeout: &quot;36000&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /
    nginx.ingress.kubernetes.io/secure-backends: &quot;true&quot;
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;true&quot;
</code></pre>
<p>Can we set another annotation in the Nginx ingress or this might be an issue from VPN? I wonder how can we resolve this issue.</p>

Sabir Piludiya
<p>I solved this by changing the configuration for the Nginx Ingress as following:</p>
<pre><code>data:
  client-max-body-size: 50M
  keep-alive: &quot;3600&quot;
  proxy-buffer-size: 500m
  proxy-buffers-number: &quot;8&quot; 
</code></pre>
<p>Glad if this is time-saving for anyone.</p>
