Commits

Bertrand Le Roy committed a56b77c

Suppress caching on order status page

Comments (0)

Files changed (1)

Controllers/OrderSslController.cs

             _addressFormatter = addressFormatter;
         }
 
+        [OutputCache(NoStore = true, Duration = 0)]
         public ActionResult Confirmation() {
             if (!TempData.ContainsKey("OrderId")) {
                 return HttpNotFound();
             }
             var orderId = TempData["OrderId"];
             TempData.Keep("OrderId");
-            var order = _contentManager.Get<OrderPart>((int)orderId);
+            var order = _contentManager.Get<OrderPart>((int) orderId);
             var billingAddress = _addressFormatter.Format(order.BillingAddress);
             var shippingAddress = _addressFormatter.Format(order.ShippingAddress);
             var products = _contentManager
             return new ShapeResult(this, shape);
         }
 
+        [OutputCache(NoStore = true, Duration = 0)]
         public ActionResult Show(int id) {
             if (TempData.ContainsKey("OrderId")) {
                 return Confirmation();
             return RedirectToAction("Show", new {id});
         }
     }
-}
+}