Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

location /_nuxt/ {
# Cache Nuxt static assets since they already have content hashes in their filenames and won't change until the next deployment
add_header Cache-Control "max-age=604800, private, immutable" always;
add_header Cache-Control "max-age=604800, private, immutable";
}

# Serve the static site
Expand Down Expand Up @@ -53,9 +53,9 @@

# Named location with shared proxy configuration
location @proxy {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
proxy_pass http://${BACKEND_HOST}:${BACKEND_PORT};
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ try:
CORSMiddleware,
allow_origins=["*"], # Super permissive CORS setting since this is for intranet
allow_credentials=True,
allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"],
allow_headers=["*"],
){% endraw %}{% if backend_uses_graphql %}{% raw %}

Expand Down
Loading