I am trying figure out how to implement GetVaryByCustomString function for asp.net core 1.0.
Have you implemented that kind of functionality for asp.net core 1.0?
Thanks
I am trying figure out how to implement GetVaryByCustomString function for asp.net core 1.0.
Have you implemented that kind of functionality for asp.net core 1.0?
Thanks
Copyright © 2021 Jogjafile Inc.
After I ask this question, using Middleware has suddenly came to my mind and i have implemented a class like below:
and then, there is the extension method for it:
and in Startup.cs Configure method, i added
app.UseOutputCacheHeader();
and on Controller:
After all of this, when i debug it, i can see that there is a header "dt-cache-user" with the proper value but ResponseCache isn't working. Everytime I hit F5 to refresh the page it always hit debug point.
What might be the reason that it doesn't work?
Thanks.