madskristensen / WebEssentials.AspNetCore.OutputCaching

Other
52 stars 17 forks source link

VaryByHeader & VaryByParam Wildcard not working. #7

Closed oguzhankahyaoglu closed 5 years ago

madskristensen commented 5 years ago

Thanks

oguzhankahyaoglu commented 5 years ago

Can you release a new version containing this fix since I needed for it :)

matias-milletari commented 5 years ago

Hi @madskristensen,

Do you have an ETA on the release of a new version with this fix? I am also having the same issue.

Thanks!

madskristensen commented 5 years ago

@matias-milletari thanks for the notch. I just kicked off a release build that will automatically publish to NuGet upon completion.

madskristensen commented 5 years ago

It's now released and available on NuGet

matias-milletari commented 5 years ago

@madskristensen Thanks for your quick response! I've already downloaded and tried setting the VaryByParam parameter with the wildcard (*), but it's not working. I did this through a Profile in Startup.cs and as a attribute parameter too, but neither worked. I'm using this attribute

[OutputCache(Duration = 600, VaryByParam = "*")]

Maybe I'm doing something wrong? I want the cache to vary for all query parameters.