I'm trying to do something similar to this question, I have a multitenant application and want to configure the output cache to be per tenant. However I'd rather not have to use a custom OutputCacheAttribute
or have an OutputCache
profile and remember to use this everywhere.
Is it possible to change the default OutputCache
profile settings, adding the host to the VaryByHeader
attribute?