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:
parent
dca9725081
commit
d93860f055
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user