Send a request to worker only when a condition satisfies

Is it possible to implement a feature which only sends a request to worker only when a specific condition satisfies. for eg: When single page applications are hosted on pages , it is not possible to server side render the page for search engine and social networking bots. So it would be useful if the request is send to worker when those bots request the pages so that we can server side render the page for them.

This is a much needed feature. This will help reduce the billing for workers by using only when it is needed by not having to serve SPA from workers for SSR.