Is there a way to removeabortReason
and _urlRewrite
from the serialized page Context?
#2541
Replies: 2 comments 14 replies
-
I ain't sure the few superfluous But definitely let me know if you find something superfluous that is relatively large.
Interesting. Can you elaborate on that? That's quite surprising — and something Vike should be aware of it it's indeed the case.
Thank you 💚 |
Beta Was this translation helpful? Give feedback.
-
Hi Rom, reporting back.
So I propose the following fix for all props that might contain a url somewhere in the string: Current workaround. Is for us to manually modify the pageContext this way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Rom,
our SEO has recently complained about our HTML that is quite large.
There are multiple contributing factors but one angle we are aiming at is to remove things from Vike page Context that gets serialized into the HTML.
We noticed that there are things in the pageContext such as
abortReason
,_urlRewrite
after server side redirects.Is there a way to remove these? We only use server routing.
Some more background:
_urlRewrite
contains urls, that is the SEO is worried will get indexed (which I'm not sure is actually happening but apparently there are cases where google crawls JSON content).PS: I brought up the issue of sponsoring internally. I didn't realize it had ended, which is likely due to the companies policy to renew it every 6 months.
Beta Was this translation helpful? Give feedback.
All reactions