In fact, the OutputCache directive is used to cache both the client and the server. When you set the Location this directive to Any , Client , Downstream or ServerAndClient , the correct cache response headers are set so that browsers or proxies do not request the same page again and serve the cached version of your page. But keep in mind that these customers may request these pages again.
Location parameters with Cache-Control headers after setting the directive: <%@ OutputCache Location="XXX" Duration="60" VaryByParam="none" %>
- Client : private, max-age = 60
- Downstream : public, max-age = 60
- Any : public
- ServerAndClient : private, max-age = 60
- Server : no-cache
- No output directive : private
Niels v
source share