fix(docs-infra): increase SSR fetch limit to prevent 404 on page reload #69377 - #69379
Conversation
|
Deployed adev-preview for f91d309 to: https://ng-dev-previews-fw--pr-angular-angular-69379-adev-prev-p0ejc77s.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
487c489 to
563022e
Compare
|
@JeanMeche, @josephperrott thanks for the review. The fixes have been pushed! |
563022e to
e2109c3
Compare
Navigating to specific ARIA guide pages directly or via hard refresh causes a 404 error because the payload exceeds the default SSR fetch limit. This commit increases the maxResponseBodySize to 2MB.
e2109c3 to
f91d309
Compare
|
@AndrewKushnir Just a heads-up that I performed a force push on this PR to resolve linting issues |
m-aciek
left a comment
There was a problem hiding this comment.
LGTM; follow-up: could integration tests check for exceeding the limit?
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Directly navigating to or refreshing (F5) certain documentation pages with large content, such as
/guide/aria/comboboxand/guide/aria/autocomplete, results in a 404 error page. This occurs because the content payload exceeds the default HTTP fetch response size limit during Server-Side Rendering (SSR).Issue Number: #69377
What is the new behavior?
This PR resolves the issue by explicitly providing larger limit 2MB (2 * 1024 * 1024). The affected pages now render successfully on initial load and after a hard refresh without redirecting to 404.
Does this PR introduce a breaking change?
Other information
hotfix