No need to fool the cache anymore. See moot's announcement:

"We will also be sending proper Last-Modified headers on HTML"
This commit is contained in:
Nicolas Stepien 2011-11-26 22:15:40 +01:00
parent dca9725081
commit d93860f055
2 changed files with 2 additions and 2 deletions

View File

@ -2026,7 +2026,7 @@
var cb, url, _ref; var cb, url, _ref;
updater.timer.textContent = 0; updater.timer.textContent = 0;
if ((_ref = updater.request) != null) _ref.abort(); if ((_ref = updater.request) != null) _ref.abort();
url = location.pathname + '?' + Date.now(); url = location.pathname;
cb = updater.cb.update; cb = updater.cb.update;
return updater.request = $.ajax(url, cb); return updater.request = $.ajax(url, cb);
} }

View File

@ -1607,7 +1607,7 @@ updater =
update: -> update: ->
updater.timer.textContent = 0 updater.timer.textContent = 0
updater.request?.abort() updater.request?.abort()
url = location.pathname + '?' + Date.now() # fool the cache url = location.pathname
cb = updater.cb.update cb = updater.cb.update
updater.request = $.ajax url, cb updater.request = $.ajax url, cb