0

I have an application asp.net mvc that has different url addresses. That is, as the address changes, the data displayed on the page also changes. I'm using OutputCache for server side cache information. how resolve this problem thanks

1 Answer 1

1

You can use VaryByParam to specify a semicolon-delimited list of query string or form POST parameters that the output cache uses to vary the cache entry.

[OutputCache(Duration = 60, VaryByParam = "parameter")]
public ActionResult Index(string parameter)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.