Rhys @rhys.dev · Nov 2

There is one small improvement that could be made if they were using Next (probably possible in Remix too, don't know the implementation though) By using middleware.ts instead of doing the dynamic content in the page itself, their content would be able to be cached

1 likes 1 replies

?

Replies

Rhys · Nov 2

This pattern has it's own tradeoffs though, as it's less flexible and now you have to maintain two page files You still have to hit an edge function, although edge middleware might be faster? Unsure on that one, it's also slightly cheaper but when we're talking about $0.65 vs $2 it doesn't matter