In order to stop caching the cart sidebar , I added the following code to my theme's checkout.xml
<block type="checkout/cart_sidebar" name="cart_sidebar" as="cart_sidebar" template="checkout/cart/sidebar.phtml">
<action method="setEsiOptions">
<params>
<method>ajax</method>
<access>private</access>
</params>
</action>
</block>