I am facing ERR_HTTP2_PROTOCOL_ERROR on my website for some of the files like CSS, and Javascript, I tried clearing the browser cache but it is not working so please do not recommend me this solution. Secondly, I can not clear the cache all the time of my all clients. Please give me a solution based on the web server, I am using NGINX with port forwarding that is my nginx settings
Ngnix configurations:-
listen 80;
server_name mydomain.com;
return 301 https://dev.mydomain.com$request_uri;
}
# SSL and Proxy Setting
server {
listen 443 ssl;
ssl_certificate /etc/ssl/dev.cryptojobs.com/certificate.crt;
ssl_certificate_key /etc/ssl/dev.cryptojobs.com/private.key;
server_name dev.mydomain.com
access_log /var/log/nginx/dev.mydomain.com.access.log;
error_log /var/log/nginx/dev.mydomain.com.error.log;
location / {
proxy_pass http://127.0.0.1:85;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
}```