flyson
flyso****@users*****
2006年 2月 11日 (土) 05:10:02 JST
Index: bbs2chreader/content/bbs2chreader/test/thread-test.js diff -u bbs2chreader/content/bbs2chreader/test/thread-test.js:1.9 bbs2chreader/content/bbs2chreader/test/thread-test.js:1.10 --- bbs2chreader/content/bbs2chreader/test/thread-test.js:1.9 Thu Feb 9 22:23:22 2006 +++ bbs2chreader/content/bbs2chreader/test/thread-test.js Sat Feb 11 05:10:01 2006 @@ -297,15 +297,15 @@ httpChannel.loadFlags = httpChannel.LOAD_BYPASS_CACHE; httpChannel.setRequestHeader("User-Agent", this._bbs2chService.userAgent, false); - // 差分GET - if(aRange && aModifiedSince){ - //this._channel.setRequestHeader("Accept-Encoding", "identity", false); - this._channel.setRequestHeader("Accept-Encoding", "", false); - this._channel.setRequestHeader("If-Modified-Since", aModifiedSince, false); - this._channel.setRequestHeader("Range", "bytes=" + aRange + "-", false); - }else{ - this._channel.setRequestHeader("Accept-Encoding", "gzip", false); - } + // 差分GET + if(this.dat.datFile.exists() && this.dat.lastModified){ + //this._channel.setRequestHeader("Accept-Encoding", "identity", false); + this._channel.setRequestHeader("Accept-Encoding", "", false); + this._channel.setRequestHeader("If-Modified-Since", aModifiedSince, false); + this._channel.setRequestHeader("Range", "bytes=" + aRange + "-", false); + }else{ + this._channel.setRequestHeader("Accept-Encoding", "gzip", false); + } this.wrappedJSObject = this; httpChannel.asyncOpen(this, null);