{"action":"created","issue":{"url":"https://api.github.com/repos/filipw/AspNetWebApi-OutputCache/issues/156","labels_url":"https://api.github.com/repos/filipw/AspNetWebApi-OutputCache/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/filipw/AspNetWebApi-OutputCache/issues/156/comments","events_url":"https://api.github.com/repos/filipw/AspNetWebApi-OutputCache/issues/156/events","html_url":"https://github.com/filipw/AspNetWebApi-OutputCache/issues/156","id":113551572,"number":156,"title":"[Suggestion] Exclude caching based on http header value","user":{"login":"Hashemalrifai","id":3750953,"avatar_url":"https://avatars.githubusercontent.com/u/3750953?v=3","gravatar_id":"","url":"https://api.github.com/users/Hashemalrifai","html_url":"https://github.com/Hashemalrifai","followers_url":"https://api.github.com/users/Hashemalrifai/followers","following_url":"https://api.github.com/users/Hashemalrifai/following{/other_user}","gists_url":"https://api.github.com/users/Hashemalrifai/gists{/gist_id}","starred_url":"https://api.github.com/users/Hashemalrifai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hashemalrifai/subscriptions","organizations_url":"https://api.github.com/users/Hashemalrifai/orgs","repos_url":"https://api.github.com/users/Hashemalrifai/repos","events_url":"https://api.github.com/users/Hashemalrifai/events{/privacy}","received_events_url":"https://api.github.com/users/Hashemalrifai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-27T10:25:59Z","updated_at":"2015-11-09T15:24:46Z","closed_at":null,"body":"Example: Ignore caching if Accept-Languages value is different."},"comment":{"url":"https://api.github.com/repos/filipw/AspNetWebApi-OutputCache/issues/comments/155094875","html_url":"https://github.com/filipw/AspNetWebApi-OutputCache/issues/156#issuecomment-155094875","issue_url":"https://api.github.com/repos/filipw/AspNetWebApi-OutputCache/issues/156","id":155094875,"user":{"login":"ericlundmark","id":543258,"avatar_url":"https://avatars.githubusercontent.com/u/543258?v=3","gravatar_id":"","url":"https://api.github.com/users/ericlundmark","html_url":"https://github.com/ericlundmark","followers_url":"https://api.github.com/users/ericlundmark/followers","following_url":"https://api.github.com/users/ericlundmark/following{/other_user}","gists_url":"https://api.github.com/users/ericlundmark/gists{/gist_id}","starred_url":"https://api.github.com/users/ericlundmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericlundmark/subscriptions","organizations_url":"https://api.github.com/users/ericlundmark/orgs","repos_url":"https://api.github.com/users/ericlundmark/repos","events_url":"https://api.github.com/users/ericlundmark/events{/privacy}","received_events_url":"https://api.github.com/users/ericlundmark/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T15:24:46Z","updated_at":"2015-11-09T15:24:46Z","body":"Are trying to achieve the same thing have written the following cachekey\r\n```C#\r\nvar v = base.MakeCacheKey(context, mediaType, excludeQueryString);\r\nreturn context.Request.Headers.Accept + v;\r\n```\r\nbut it does not seem to work when testing with postman. I have the following configuration\r\n            \r\n```C#\r\nconfig.CacheOutputConfiguration().RegisterCacheOutputProvider(() => new MemoryCacheDefault());\r\nconfig.CacheOutputConfiguration().RegisterDefaultCacheKeyGeneratorProvider(() => new AcceptHeaderKeyGenerator());\r\n```"}}