kodadot / nft-gallery

Generative Art Marketplace
https://koda.art
MIT License
634 stars 361 forks source link

HTML energy #6312

Open yangwao opened 1 year ago

yangwao commented 1 year ago

I appreciate prerender yet.. I'm not bot and using mobile Chrome Android 😄, ideas?

Screenshot_20230623_114645_Chrome.jpg

when I enter kodadot.xyz in URL normally I got normal results

roiLeo commented 1 year ago

Tested on pixel and it worked for me, could you check your chrome version?

preschian commented 1 year ago

@yangwao type "check user agent" in google and give me the result here, will check

yangwao commented 1 year ago

I know some ppl know me irl think I'm bot, but if even machines considers me as bot, that's baaad.

image

https://github.com/kodadot/nft-gallery/assets/5887929/e3aadfa6-f831-4583-92f2-f492b1ebae2a

yangwao commented 1 year ago

if this helps

image image

Jarsen136 commented 1 year ago

I guess it's not related to user-agent from user side. The direct reason is that google lead the user to another cache url instead of kodadot.xyz

image

https://kodadot-xyz.webpkgcache.com/doc/-/s/kodadot.xyz/ This url would lead to html render result.

preschian commented 1 year ago

@yangwao at the moment let's disable "Signed Exchange" feature first on cloudflare dashboard https://developers.cloudflare.com/fundamentals/speed/signed-exchanges/enable-signed-exchange/#enable-sxgs

ref:

preschian commented 1 year ago

I don't think we need "Signed Exchange" for now. even with prerender.io, it will give a bad experience to the user. visually better, but the only user can do is navigate to the other pages. the users cant interact with actions that need javascript (connect, switch chain, search, accept cookies banner)

tested on visit https://preschian.xyz/ by using userAgent bot

yangwao commented 1 year ago

But it improves SEO ranking?

yet turned it off for now image image

preschian commented 1 year ago

But it improves SEO ranking?

yes

imo, we can enable this once we are moving from prerendering to SSR mode. because prerendering content is intended for the bot, not for the user. meanwhile, SXG will serve prerendering content to the user if we enable it now

yangwao commented 1 year ago

Okay seems to be working now.

Can I now enable SXG back?

preschian commented 1 year ago

Can I now enable SXG back?

nope, it will error again

blocked. in favor for #2690