in ASP.NET, If I use:
$<%@OutputCache Duration="3" VaryByParam="*" %>
or
Cache.Insert("Names", mydataset);
Does this store the cache on the browser or the server? I know they're two different methods for caching and there are probably several more but I'm trying to find out when the cache is stored on the client browser or on the server and where can I find the pros and cons between cache being store on either of them.
This:
<%@OutputCache Duration="3" VaryByParam="*" %>
May be cached at both, the server or the client because by default the Location value of the OutputCache directive is Any. See here for reference.
Now, this:
Cache.Insert("Names", mydataset);
Will be cached on the server side in the application Cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With