Skip to content

[Fix] Remove "Link" header#1152

Merged
RichardAnderson merged 1 commit into
vitodeploy:4.xfrom
RichardAnderson:fix/nginx_configuration
Jun 10, 2026
Merged

[Fix] Remove "Link" header#1152
RichardAnderson merged 1 commit into
vitodeploy:4.xfrom
RichardAnderson:fix/nginx_configuration

Conversation

@RichardAnderson

@RichardAnderson RichardAnderson commented Jun 9, 2026

Copy link
Copy Markdown
Member

Removes the "Link" header to remove the need to set NGINX proxy_buffer_size/proxy_buffers/proxy_busy_buffers_size from reverse proxy configurations.

Vite still injects preloads into the of the application, allowing the application to lazily load assets prior to the complete rendering of the application.

Summary by CodeRabbit

  • Chores
    • Removed a middleware from the web middleware stack.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b05c3240-580f-4503-93dc-007b46f94419

📥 Commits

Reviewing files that changed from the base of the PR and between 829c726 and 5d797f9.

📒 Files selected for processing (1)
  • app/Http/Kernel.php
💤 Files with no reviewable changes (1)
  • app/Http/Kernel.php

📝 Walkthrough

Walkthrough

The pull request removes the AddLinkHeadersForPreloadedAssets middleware from the application's HTTP kernel. The import statement is updated to add HandleCors middleware, and the removed middleware is deleted from the web middleware group configuration.

Changes

Middleware Configuration

Layer / File(s) Summary
Remove AddLinkHeadersForPreloadedAssets middleware
app/Http/Kernel.php
The import list is updated to remove AddLinkHeadersForPreloadedAssets and add HandleCors. The middleware is then removed from the 'web' middleware group, leaving other middleware entries intact.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[Fix] Remove "Link" header' accurately describes the main change: removing the AddLinkHeadersForPreloadedAssets middleware to eliminate the Link header from HTTP responses.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@RichardAnderson RichardAnderson merged commit 65a700d into vitodeploy:4.x Jun 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants