Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Any Plans to Implement VaryByParam? #2894

Closed
RehanSaeed opened this issue Jul 31, 2015 · 5 comments
Closed

Any Plans to Implement VaryByParam? #2894

RehanSaeed opened this issue Jul 31, 2015 · 5 comments
Assignees
Milestone

Comments

@RehanSaeed
Copy link

Are there any plans to implement the MVC 5 VaryByParam property on ResponseCache and CacheProfile? Is there an alternative approach?

@Daniel15
Copy link
Contributor

ResponseCache doesn't need VaryByParam. ResponseCache is purely client-side caching, and client-side caching is always based on the full URL including querystring parameters.

@RehanSaeed
Copy link
Author

Ok, let me ask this in another way. Are there any plans on implementing a server side caching attribute that works similarly to the OutputCacheAttribute?

@danroth27 danroth27 added this to the 6.0.0-beta8 milestone Aug 14, 2015
@Eilon Eilon modified the milestones: 6.0.0-beta8, 6.0.0-rc1 Sep 24, 2015
@Eilon Eilon modified the milestones: 6.0.0-rc1, 1.0.0-rc2 Oct 22, 2015
@Eilon Eilon modified the milestones: Backlog, 6.0.0-rc2 Jan 22, 2016
@colltoaction
Copy link

It's been a year since @RehanSaeed asked the question. It looks like you guys had plans to implement it in the beta, then in the rc, then moved it to the backlog again...

Could you share any details about when server-side caching attributes will be available? I'm planning on using IMemoryCache, but it would be great to have this as an attribute!

Also, I see CacheTagHelper uses IMemoryCache and we can use that from Razor, but I don't think I'll be able to use that from a Controller. Maybe we could reuse that code?

Thanks!

@Tratcher
Copy link
Member

@Tratcher
Copy link
Member

@JunTaoLuo

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

No branches or pull requests

7 participants