From 040cf69ec1708fed6a0fb7cca7b95520e80a05d4 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 31 Jul 2011 16:57:13 +0200 Subject: [PATCH] Don't append the search to the hash. It won't fool the cache. Also fuck firefox. --- 4chan_x.user.js | 2 +- changelog | 2 ++ script.coffee | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index f5831ca55..e340259d4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1698,7 +1698,7 @@ if ((_ref = updater.request) != null) { _ref.abort(); } - url = location.href + '?' + Date.now(); + url = location.pathname + '?' + Date.now(); cb = updater.cb.update; return updater.request = $.get(url, cb); } diff --git a/changelog b/changelog index 42ece2627..dd62ecd00 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ github +- mayhem: + - fix updater when there is a hash in the url 2.17.0 - mayhem: diff --git a/script.coffee b/script.coffee index 2495acf0b..28c3bdae9 100644 --- a/script.coffee +++ b/script.coffee @@ -1380,7 +1380,7 @@ updater = update: -> updater.request?.abort() - url = location.href + '?' + Date.now() # fool the cache + url = location.pathname + '?' + Date.now() # fool the cache cb = updater.cb.update updater.request = $.get url, cb