Saturday, February 4, 2017

ASP.NET Monsters #92: Saving CPU Cycles with Static Resource Hashes


Borrowing ideas from a recent blog post by the Facebook engineering team. First, we create a tag helper to generate static resource URLs based on a hash of the file's contents. Follow @aspnetmonsters In today's episode, Monster Dave prototypes an approach to generating static resource URLs to potentially improve the performance of an ASP.NET Core application. Next, we write some custom middleware to rewrite those new URLs to the actual file and to always return 304 not-modified for all conditional requests. NOTE: This video is intended to explore the concepts outlined in the blog post above and are not be suited for production use. The Blog Post: https://code.facebook.com/posts/557147474482256... https://code.facebook.com/posts/557147474482256 https://twitter.com/aspnetmonsters http://minhthang.name.vn Do not forget to LIKE, SHARE, SUBSCRIBEhttps://youtu.be/V7TVw5HwuYc