Force thread watcher to use If-Modified-Since even if page isn't cached; add timeout.

This commit is contained in:
ccd0 2015-05-25 19:03:11 -07:00
parent cd23973d99
commit a1708d74ea

View File

@ -198,6 +198,9 @@ ThreadWatcher =
req = $.ajax "//a.4cdn.org/#{boardID}/thread/#{threadID}.json",
onloadend: ->
ThreadWatcher.parseStatus.call @, thread
timeout: $.MINUTE
,
whenModified: 'ThreadWatcher'
ThreadWatcher.requests.push req
parseStatus: ({boardID, threadID, data}) ->