Go offline with the Player FM app!
ASP.NET Monsters #92: Saving CPU Cycles with Static Resource Hashes
Archived series ("Inactive feed" status)
When? This feed was archived on January 16, 2022 11:29 (). Last successful fetch was on July 07, 2021 16:08 ()
Why? Inactive feed status. Our servers were unable to retrieve a valid podcast feed for a sustained period.
What now? You might be able to find a more up-to-date version using the search function. This series will no longer be checked for updates. If you believe this to be in error, please check if the publisher's feed link below is valid and contact support to request the feed be restored or if you have any other concerns about this.
Manage episode 172376706 series 1376297
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. 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. 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.
The Blog Post: https://code.facebook.com/posts/557147474482256
NOTE: This video is intended to explore the concepts outlined in the blog post above and are not be suited for production use.
100 episodes
Archived series ("Inactive feed" status)
When? This feed was archived on January 16, 2022 11:29 (). Last successful fetch was on July 07, 2021 16:08 ()
Why? Inactive feed status. Our servers were unable to retrieve a valid podcast feed for a sustained period.
What now? You might be able to find a more up-to-date version using the search function. This series will no longer be checked for updates. If you believe this to be in error, please check if the publisher's feed link below is valid and contact support to request the feed be restored or if you have any other concerns about this.
Manage episode 172376706 series 1376297
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. 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. 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.
The Blog Post: https://code.facebook.com/posts/557147474482256
NOTE: This video is intended to explore the concepts outlined in the blog post above and are not be suited for production use.
100 episodes
All episodes
×Welcome to Player FM!
Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.