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

Provide a simple way to serve one version of a site to PRPL-ready browsers and a different version to legacy UAs #224

Open
slightlyoff opened this issue Jan 6, 2017 · 2 comments

Comments

@slightlyoff
Copy link

The new H/2 push support is great! It, however, leaves a Polymer CLI app in a tough spot as it isn't obvious at first blush how to serve the bundled version to legacy UAs and the H/2 push version of the app to the PRPL-supporting browsers.

It'd be great if there was a way in the static site config to capture this difference and provide configuration for each type.

/cc @mbleigh @ebidel @justinfagnani @graynorton

@tjsavage
Copy link

Another use-case for this we just ran into: serving a static/server-rendered version of a page to bots & crawlers that don't execute JS, and a dynamic one to those that do.

At first blush I believe one solution might be able to apply to both of these problems - a static mapping of UA strings (ideally regexes) to URL rewrites.

@raydaly
Copy link

raydaly commented Jan 25, 2017

This may be making the effort too broad, but if you are looking at static sites then you should also look at making the metadata different for each page. This is currently a problem for how Facebook shares pull the title, description, url and image for meta tags. So currently sharing SPA on Facebook and Twitter with meta data FAIL.

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

3 participants