Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will it work as a replacement of outputcache where location is set as ServerAndClient #91

Closed
rajdey1 opened this issue Sep 7, 2020 · 1 comment

Comments

@rajdey1
Copy link

rajdey1 commented Sep 7, 2020

Hi,

I am migrating a asp.net project to asp.net core. In the asp.net project we cache MVC view using the outputCache where in the settings is [OutputCache(Duration = 900, VarByParam ="*", Location ="ServerAndClient")] I believe since the location is ServerAndClient it will work on generated Etag in asp.net but since asp.net core there is no generated Etag. Can I use HttpCacheHeaders middleware and achieve the same.

If yes how do we configure the same?

@KevinDockx
Copy link
Owner

This middleware is not a cache store, it simply generates cache headers (including Etags). You'll still need a cache store, preferably a separate cache server, to actually cache stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants