From 0d0604e03b8f5cde61078b280e4cb2548e5b0a62 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Dec 2012 11:00:06 -0800 Subject: Allow cached AJAX --- public/js/calculator.coffee | 2 -- public/js/index.coffee | 1 - 2 files changed, 3 deletions(-) diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index 78e5d91c..ef26fd63 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -25,7 +25,6 @@ $(-> if g.user $.ajax( url: g.user + '.json', - cache: false, dataType: 'json', success: (data) -> if data? @@ -83,7 +82,6 @@ setup = -> fetchExchangeRate = -> $.ajax( url: "ticker?symbol=#{g.symbol}&type=ask&amount=1000", - cache: false, success: (exchange) -> if exchange? clear(EXCHANGE_FAIL) diff --git a/public/js/index.coffee b/public/js/index.coffee index 7db59a66..2a8a6b5a 100644 --- a/public/js/index.coffee +++ b/public/js/index.coffee @@ -11,7 +11,6 @@ fetchExchangeRate = (type) -> $.ajax( url: "ticker?symbol=virtexCAD&type=#{type}&amount=1000", - cache: false, success: (exchange) -> if not exchange? exchange = '??' -- cgit v1.2.3