prerender-cloudfront icon indicating copy to clipboard operation
prerender-cloudfront copied to clipboard

serve prerendered pages to clients as well as crawlers

Open yasserzubair opened this issue 4 years ago • 3 comments

Hello, I am writing this question here because i found nowhere else to ask this.

Is there any way to configure this to redirect clients and crawlers both to the prerendered page. I mean to serve the prerendered site only. I tired keeping prerender=true in every case but that doesn't serve the page and doesn't cache it either. Any help is appreciated.

yasserzubair avatar May 22 '20 23:05 yasserzubair

Hi,

I'm pretty confused why you would want to redirect clients to the prerendered page? AFAIK a client has a much better experience if they do the rendering in their browser.

Regards, Brian

jinty avatar May 23 '20 14:05 jinty

@jinty Thankyou for the response. It is a business requirment. Someone told corporate to SSR and now they want HTML in their browser. Long story short, it is inevitable now and need to achieve it.

yasserzubair avatar May 23 '20 14:05 yasserzubair

I don't think that using prerendering in this way makes sense for your usecase. It probably could be done, but I would look into using node to render the HTML on the server side.

jinty avatar May 24 '20 19:05 jinty