Wednesday, 6 May 2020

Adding a small amount of data to an express response - use render?

Say I want to change an img src for each user to represent a logged in user's avatar but otherwise return a static html file via express. Is this a good use case for templates? Would that lead to cache misses in nginx and a performance penalty? Is there a better way to add a small amount of data and let the client render it?

Submitted May 07, 2020 at 03:23AM by alee543

No comments:

Post a Comment