Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove cache control headers for requests handled with an error in Caddy #36590

Merged
merged 2 commits into from
Oct 7, 2024
Merged
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
11 changes: 8 additions & 3 deletions deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ parts.push(`
}

# skip logs for health check
skip_log /api/v1/health
log_skip /api/v1/health

# skip logs for sourcemap files
@source-map-files {
path_regexp ^.*\.(js|css)\.map$
}
skip_log @source-map-files
log_skip @source-map-files

# The internal request ID header should never be accepted from an incoming request.
request_header -X-Appsmith-Request-Id
Expand Down Expand Up @@ -154,7 +154,12 @@ parts.push(`

handle_errors {
respond "{err.status_code} {err.status_text}" {err.status_code}
header -Server
header {
# Remove the Server header from the response.
-Server
# Remove Cache-Control header from the response.
-Cache-Control
}
}
}

Expand Down
Loading