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

System Design > Backends For Frontend subtopic resource properly renamed but valid content exists at URI with typo #8133

Open
1 task done
alicecommits opened this issue Jan 28, 2025 · 0 comments
Labels

Comments

@alicecommits
Copy link
Contributor

alicecommits commented Jan 28, 2025

What is the URL where the issue is happening

https://roadmap.sh/system-design/backends-for-frontend@n4It-lr7FFtSY83DcGydX

What browsers are you seeing the problem on?

Chrome

Describe the Bug

I further investigated the different request/response headers, especially the ones relating to AWS CloudFront:

Request URL:
https://roadmap.sh/system-design/backends-for-frontend@n4It-lr7FFtSY83DcGydX
Request Method: GET
Status Code: 404 Not Found
Remote Address: 3.165.136.72:443
Referrer Policy: strict-origin-when-cross-origin
age: 59180
cache-control: max-age=0, must-revalidate
content-encoding: br
content-type: text/html; charset=UTF-8
date: Mon, 27 Jan 2025 23:32:56 GMT
etag: W/"c9a1-194aa177455"
last-modified: Mon, 27 Jan 2025 23:27:31 GMT
server: nginx/1.18.0 (Ubuntu)
vary: Accept-Encoding
via: 1.1 c40f54ba68fc84418ef3fa6fd68bc010.cloudfront.net (CloudFront)
x-amz-cf-id: oPL141bf7fzYCUPG4qPVxjNTgQJwkn8vz_NyY2djTI9pQ1RPZf417w==
x-amz-cf-pop: CDG52-P3
x-cache: Error from cloudfront
x-frame-options: SAMEORIGIN
:authority: roadmap.sh
:method: GET
:path: /system-design/backends-for-frontend@n4It-lr7FFtSY83DcGydX
:scheme: https
accept: text/html
accept-encoding: gzip, deflate, br, zstd
accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,pl;q=0.6
authorization: Bearer undefined
content-type: application/json
referer: https://roadmap.sh/system-design

I investigated further the Error from cloudfront in the context of 404 Resource Not Found, which indeed seems to be the fact that the URL is pointing to a resource that doesn't seem to exist in CloudFront.

I wanted to know if there was maybe some resource renaming on the CloudFront side of things that needed doing. I am new to large websites CDN, I don't exactly know how the URI/URL renaming mechanisms work in CloudFront - I found this Medium article that talks about URL rewriting using a lambda function (in the author's use case, they do so to systematically drop a specific portion of the URL): https://serprime.medium.com/aws-cloudfront-url-rewriting-422d4868b282.

For roadmap.sh, is there any content update pull/push mechanisms triggered between the content of the repo - in this case, the .md file resource itself - and the corresponding CloudFront content? Or is the renaming workflow following another mechanism?

Thanks in advance,

Output from browser console (if any)

No response

Participation

  • I am willing to submit a pull request for this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant