Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cache Master Page in ASP.NET

How can I cache the master page in ASP.NET?

like image 616
Sauron Avatar asked Oct 17 '25 13:10

Sauron


1 Answers

Unlike user controls, you can't OutputCache a Master page by itself--only as part of a Page.

Also, OutputCaching won't help the performance of a toolbar with lots of images anyway.

The kind of things that would help include image sprites, client-side caching, using a CDN, using multiple domains for static files, etc.

In case it's helpful, I cover those strategies in my book: Ultra-Fast ASP.NET.

like image 157
RickNZ Avatar answered Oct 19 '25 04:10

RickNZ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!