chore: convert consolidated api etag to a weak one#38939
Conversation
WalkthroughThis pull request involves configuration changes across multiple files related to NGINX, Caddy, and server-side API response handling. The modifications primarily focus on adjusting how API responses are compressed, routed, and tagged, with specific changes to ETag generation and route configuration. The changes aim to address potential issues with header management and compression in the application's server infrastructure. Changes
Sequence DiagramsequenceDiagram
Client->>NGINX: Send API Request
NGINX->>Server: Forward Request
Server->>Server: Generate Weak ETag
Server-->>NGINX: Response with Weak ETag
NGINX-->>Client: Compressed Response
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/13068639819. |
|
Deploy-Preview-URL: https://ce-38939.dp.appsmith.com |
|
/build-deploy-preview skip-tests=true recreate=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/13069261022. |
|
Deploy-Preview-URL: https://ce-38939.dp.appsmith.com |
## Description Updated the computeConsolidatedAPIResponseEtag method to return weak ETags instead of strong ETags to ensure compatibility with nginx when gzip is enabled. This change includes adding a prefix "W/" to the ETag value and includes references to related issues and documentation. Ref: kubernetes/ingress-nginx#1390 Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13069342399> > Commit: b09d978 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13069342399&attempt=3" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Fri, 31 Jan 2025 10:40:19 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Configuration Changes** - Modified NGINX configuration to potentially enable gzip compression for API responses - Updated ETag generation to use weak ETag format for better compatibility - Removed specific route handling for consolidated API endpoint in Caddy configuration <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Description Updated the computeConsolidatedAPIResponseEtag method to return weak ETags instead of strong ETags to ensure compatibility with nginx when gzip is enabled. This change includes adding a prefix "W/" to the ETag value and includes references to related issues and documentation. Ref: kubernetes/ingress-nginx#1390 Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13069342399> > Commit: b09d978 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13069342399&attempt=3" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Fri, 31 Jan 2025 10:40:19 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Configuration Changes** - Modified NGINX configuration to potentially enable gzip compression for API responses - Updated ETag generation to use weak ETag format for better compatibility - Removed specific route handling for consolidated API endpoint in Caddy configuration <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Updated the computeConsolidatedAPIResponseEtag method to return weak ETags instead of strong ETags to ensure compatibility with nginx when gzip is enabled. This change includes adding a prefix "W/" to the ETag value and includes references to related issues and documentation.
Ref: kubernetes/ingress-nginx#1390
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13069342399
Commit: b09d978
Cypress dashboard.
Tags:
@tag.AllSpec:
Fri, 31 Jan 2025 10:40:19 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit