Skip to content

Commit

Permalink
global: disable etag validation in nginx
Browse files Browse the repository at this point in the history
Signed-off-by: Parth Shandilya <parth.shandilya@cern.ch>
  • Loading branch information
ParthS007 committed Jul 7, 2023
1 parent 83582cb commit aa85d8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/nginxdev/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ server {
proxy_buffering off;
proxy_cache off;

# disable etag and last-modified validation
proxy_set_header If-None-Match "";
proxy_set_header If-Modified-Since "";

proxy_pass http://nodeweb$is_args$args;
}
location /api {
Expand All @@ -93,6 +97,10 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://api_server;

# disable etag and last-modified validation
proxy_set_header If-None-Match "";
proxy_set_header If-Modified-Since "";

# Max upload size (except for files) is set to 100mb as default.
client_max_body_size 100m;
}
Expand Down

0 comments on commit aa85d8c

Please sign in to comment.