StaticFileHandler that supports caching of VirtualPathProvider served content

I have a library of reusable partial views, scripts and images that are embedded in assembly and shared between projects. Everything works fine, I've modified web.config to make all necessary file types to be served by System.Web.StaticFileHandler, but unfortunately, it serves all resources with Cache-Control: private.I can write my own StaticFileHandler that would serve VPP content with Cache-Control: public and expiration date.How do I implement caching support using VirtualPathProvider.GetCacheDependency?
 
Back
Top