0

Can I do this?

[OutputCache(Duration = 111, VaryByParam = "id;category", VaryByCustom = "auth", VaryByHeader = "X-Requested-With")]

All these parameters will be used? Or will MVC just simply ignore all except VaryByCustom for example?

Hexie
  • 3,955
  • 6
  • 32
  • 55
shemanov
  • 123
  • 3
  • 7

1 Answers1

0

All this VaryBy* can be used independently. And all used VaryBy* will work.

Kirill Bestemyanov
  • 11,946
  • 2
  • 24
  • 38