summaryrefslogtreecommitdiff
path: root/Cydia.app
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-06-21 07:10:52 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:14:00 +0000
commit65c27c5674227ae8ff7fd8eaa46cc1c9a5111004 (patch)
treeb7144dcda174b2318db3b19a5e3763bc13cb7893 /Cydia.app
parent42fc47f8d74f32d0c12eb93e54a79a1fd5b53b96 (diff)
Changed cache control.
Diffstat (limited to 'Cydia.app')
-rw-r--r--Cydia.app/package.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index 8cca069..6e091cf 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -33,10 +33,6 @@ function space(selector, html, max) {
}
}
-function cache(url) {
- return url.replace('://', '://wpc.03A4.edgecastcdn.net/8003A4/');
-}
-
var swap_, swap = function (on, off, time) {
setTimeout(swap_(on, off, time), time);
};
@@ -57,7 +53,9 @@ var special_ = function () {
var idc = encodeURIComponent(id);
var name = package.name;
var icon = 'cydia://package-icon/' + idc;
+
var api = 'http://cydia.saurik.com/api/';
+ var capi = 'http://cache.cydia.saurik.com/api/';
var support = package.support;
@@ -71,7 +69,7 @@ var special_ = function () {
$("#name").html(name);
space("#latest", package.latest, 96);
- $.xhr(cache(api + 'package/' + idc), 'GET', {}, null, {
+ $.xhr(capi + 'package/' + idc, 'GET', {}, null, {
success: function (value) {
value = eval(value);