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

How to main same _rsc key for each link in all the pages #11320

Open
vinothweb opened this issue Mar 22, 2024 · 0 comments
Open

How to main same _rsc key for each link in all the pages #11320

vinothweb opened this issue Mar 22, 2024 · 0 comments

Comments

@vinothweb
Copy link

vinothweb commented Mar 22, 2024

I was wondering how to maintain same _rsc key for links across the pages. Below are example,

In page -  example.com/about - the _rsc key for that contact page will be "HYFGB", example link below
example.com/contact?_rsc=HYFGB

In Page - example.com/story -  the key for that story page will be "AKYGV", example link below
example.com/contact?_rsc=AKYGV

In the above example the _rsc key of contact page is different in about and story pages. This leads to fetch the rsc pages of same link multiple times in different pages when it is behind CDN.

I am expecting to use same _rsc=XXXX key across all the pages for the links.

I'm bringing up this problem because every page has a unique _rsc key, which means the requests cached on the CDN are not very effective. For websites with over 100,000 pages, each page has more than 300 links and when around 100 _rsc hits the server simultaneously the takes bit longer to responds approximately 2 to 5 seconds under high traffic conditions like 1k concurrent users. This delay makes the website seem unresponsive to users when they click on any link.

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

No branches or pull requests

1 participant