If you’re trying to understand the power of EdgeJS, our handy Cookbook guide has a number of helpful examples of common (and not so common) routing and caching scenarios, including cookie handling, cache normalization, serving static files, and handling redirects.
https://docs.layer0.co/guides/cookbook