I know ResponseCache attribute
can caching page in client side by http headers attribute cache-control
.
And ResponseCache middleware
, it caching page on server (same http headers as ResponseCache attribute
).
I compare these, it seems no different, same features, same condition.
Server side caching is no different from ResponseCache attribute
, they both don't let the request into controller action, or these have different request pipeline ?
So, What kind of scenarios would choose ResponseCache middleware
/ ResponseCache attribute
?