From 624b4e38534be9cba9b0a116d60a29e92f3b3ca1 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 30 Jul 2011 19:31:13 +0200 Subject: [PATCH] You ain't gonna fool a cache, by appending a search to a hash. Yo. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3dcf8f3dd..dcd2b80ee 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1685,7 +1685,7 @@ if ((_ref = updater.request) != null) { _ref.abort(); } - url = location.href + '?' + Date.now(); + url = location.origin + location.pathname + '?' + Date.now(); cb = updater.cb.update; return updater.request = $.get(url, cb); } diff --git a/script.coffee b/script.coffee index 1667905b1..fe28a2c55 100644 --- a/script.coffee +++ b/script.coffee @@ -1366,7 +1366,7 @@ updater = update: -> updater.request?.abort() - url = location.href + '?' + Date.now() # fool the cache + url = location.origin + location.pathname + '?' + Date.now() # fool the cache cb = updater.cb.update updater.request = $.get url, cb