We have a site that listens on a few different host headers. We have a couple of spots on the site that check the host header and change the styling slightly.
Currently, I have the output cache set to a 4 hour expiration. Depending on the site that gets hit first, it's cache is used for all the host bindings.
Is there a way to configure this in EPiServer not to happen?
I had this problem as well. I thought the httpCacheVaryByCustom="path" should do it but it seems it doesn't.
What we did is to add host to the ContentOutputCache attribute.
[ContentOutputCache(VaryByHeader = "host")]
Thanks for the response. This site is WebForms based, not MVC. I will take a look for the equivalnt.