Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Dec 29, 2023
1 parent 0b446c1 commit 8154c7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ http {
proxy_cache_valid 404 20s; # Cache responses for 20 seconds
# Add headers
add_header X-Realtime 1;
add_header Cache-Control "public, max-age=20"; # Cache responses for 20 seconds§§
add_header Cache-Control "public, max-age=20"; # Cache responses for 20 seconds
add_header X-Cache-Skip $skip_reason;
add_header X-Cache-Status $upstream_cache_status;
add_header Access-Control-Allow-Origin "*";
Expand Down Expand Up @@ -259,7 +259,7 @@ http {
proxy_cache_valid 404 20s; # Cache responses for 20 seconds
# Add headers
add_header X-Realtime 1;
add_header Cache-Control "public, max-age=20"; # Cache responses for 20 seconds§§
add_header Cache-Control "public, max-age=20"; # Cache responses for 20 seconds
add_header X-Cache-Skip $skip_reason;
add_header X-Cache-Status $upstream_cache_status;
add_header Access-Control-Allow-Origin "*" always;
Expand All @@ -286,7 +286,7 @@ http {
proxy_cache_valid 404 30s; # Cache responses for 30 seconds
# Add headers
add_header X-Realtime 1;
add_header Cache-Control "public, max-age=30"; # Cache responses for 60 seconds§§
add_header Cache-Control "public, max-age=30"; # Cache responses for 60 seconds
add_header X-Cache-Skip $skip_reason;
add_header X-Cache-Status $upstream_cache_status;
add_header Access-Control-Allow-Origin "*";
Expand All @@ -309,7 +309,7 @@ http {
return 204;
}
# Add headers
add_header Cache-Control "public, max-age=3600"; # Cache responses for 3600 seconds§§
add_header Cache-Control "public, max-age=3600"; # Cache responses for 3600 seconds
add_header X-Cache-Skip $skip_reason;
add_header X-Cache-Status $upstream_cache_status;
add_header Access-Control-Allow-Origin "*";
Expand Down

0 comments on commit 8154c7a

Please sign in to comment.