Expanding functionality of redirects

A few people have questions & wishlists regarding redirects with a _redirects file. If you have an opinion you’d like to share, comment below. The more information we have about your use case, the better! :slight_smile:

I want to pre-render different static HTML page versions for mobile and desktop in an SPA, and redirect the user to a correct one on first load to avoid screen flickering. Ideally I’d like to have a redirect rule based on screen size.

Conditional redirect based on headers would be handy. One potential use case: redirect to webp image for browsers that support it via the accepts header and fallback to png.

2 Likes