Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
ece50af
initial worker implementation
hthetiot Dec 13, 2017
70d7656
update .jshintrc
hthetiot Dec 13, 2017
b960302
update build
hthetiot Dec 13, 2017
f2fae75
remove worker debug file
hthetiot Dec 13, 2017
77cd1bd
remove dist file
hthetiot Dec 13, 2017
f3b3827
Merge branch 'features/integration-test' into features/workerSupport
hthetiot Dec 13, 2017
40e21e5
merge features/integration-test
hthetiot Dec 13, 2017
f0ea0e3
rename sendViaHttp2 to sendViaChannel, enable worker with not proxy
hthetiot Dec 13, 2017
08133eb
update integration-test
hthetiot Dec 13, 2017
51f619a
remove console
hthetiot Dec 13, 2017
af02173
improve worker integration-tests
hthetiot Dec 13, 2017
3273651
implement Configuration.terminateWorker to close channel and worker o…
hthetiot Dec 13, 2017
d6658cc
jshint
hthetiot Dec 13, 2017
3b33742
fix worker pure XHR support
hthetiot Dec 13, 2017
be0e230
loop only once on headers instead of converting from Map
hthetiot Dec 13, 2017
d4d44a3
merge features/integration-test
hthetiot Dec 14, 2017
ff3d458
fix spec
hthetiot Dec 14, 2017
6792927
Update karma.conf.js
hthetiot Dec 14, 2017
4f76bbf
fix postMessage _changeState response
hthetiot Dec 14, 2017
2e0b67b
fix postMessage _changeState response
hthetiot Dec 14, 2017
eaeec67
fix postMessage _changeState response
hthetiot Dec 14, 2017
ca625cb
implement xhr viaChannel shared response via arraybuffer
hthetiot Dec 14, 2017
05de2f1
merge develop
hthetiot Dec 14, 2017
6e52dc5
remove TODO
hthetiot Dec 14, 2017
da713d3
disable Worker transferable (pass on Chrome, Safari fail on Firefox, …
hthetiot Dec 14, 2017
c410ddf
define getResponseHeader and getAllResponseHeaders on XMLHttpRequest.…
hthetiot Dec 14, 2017
1e18657
fix statusCode
hthetiot Dec 14, 2017
189c5fe
transmit via channel only the available information based on readyState
hthetiot Dec 14, 2017
74a3579
optimize sendViaChannel readystatechange
hthetiot Dec 14, 2017
31baada
fix case-sensitive issue on Firefox
hthetiot Dec 14, 2017
d4d2129
fix case-sensitive issue on Firefox
hthetiot Dec 14, 2017
e0bced0
minor readystatechange sendViaChannel changes
hthetiot Dec 14, 2017
5d3dbdc
fix Firefox transferable comment issue
hthetiot Dec 14, 2017
5f37437
jshint
hthetiot Dec 14, 2017
53fe721
remove mocha-worker
hthetiot Dec 15, 2017
3d2c43c
fix npm run integration, add npm run integration:worker
hthetiot Dec 15, 2017
885720b
update integration-test
hthetiot Dec 15, 2017
cd4c240
add test with and without worker to compare perf
hthetiot Dec 15, 2017
b792b5d
prevent possible ArrayBuffer copy
hthetiot Dec 15, 2017
0c60b2c
remove generated tests
hthetiot Dec 15, 2017
10cf629
update integration test to wait 250ms for configuration to exclude co…
hthetiot Dec 15, 2017
557a968
remove invalid test (Share buffer no worker)
hthetiot Dec 15, 2017
a6c6ed3
fix run-in-worker.html test
hthetiot Dec 16, 2017
ed0fafb
fix Worker defaut path to '/dist/http2-cache.js?worker'
hthetiot Dec 16, 2017
4b6f459
update worker integration test
hthetiot Dec 16, 2017
a515595
Merge branch 'develop' into features/workerSupport
hthetiot Dec 16, 2017
1908954
Merge branch 'develop' into features/workerSupport
hthetiot Dec 16, 2017
f336f66
jshint
hthetiot Dec 16, 2017
ef3f002
Merge branch 'features/workerSupport' of https://github.com/kaazing/h…
hthetiot Dec 16, 2017
7b9b9ed
fix karma tests
hthetiot Dec 16, 2017
01bd41b
merge features/integration-test
hthetiot Dec 16, 2017
7be6fe0
detect currentScript and use src has default Worker path
hthetiot Dec 18, 2017
68f0fbb
only convert to arraybuffer if needed
hthetiot Dec 18, 2017
25d49a3
fix sendViaChannel responseType
hthetiot Dec 18, 2017
e87ddf0
fix sendViaChannel responseType
hthetiot Dec 18, 2017
f472be7
remove Pure XHR worker tests
hthetiot Dec 18, 2017
6ba2686
jshint
hthetiot Dec 18, 2017
91c27b0
fix currentScript on NodeJS
hthetiot Dec 18, 2017
355f7f8
update integration:worker tests
hthetiot Dec 18, 2017
b2b0e0d
add configurable endpoint for integration:worker
hthetiot Dec 18, 2017
04cc872
update integration/test-server.js
hthetiot Dec 18, 2017
b6104d1
oprimize arrayBufferToString
hthetiot Dec 18, 2017
ec7605c
fix review (new line, trim)
hthetiot Dec 18, 2017
f32fb93
Enable worker by default if supported.
hthetiot Dec 28, 2017
db40922
Merge branch 'develop' into features/workerSupport
hthetiot Dec 28, 2017
2a59523
fix indent
hthetiot Dec 28, 2017
23ac353
jshint
hthetiot Dec 28, 2017
dc14bf9
fix node spec
hthetiot Dec 29, 2017
146f2cc
merge master
hthetiot Jan 22, 2018
68ba462
fix bad merge master
hthetiot Jan 22, 2018
eae3129
otpmize xhrChannelResponse
hthetiot Jan 22, 2018
d4e2e63
remove un-unsed defineGetter prop auto save, that may cause previous …
hthetiot Jan 22, 2018
8f4b147
Merge branch 'develop' into features/workerSupport
hthetiot Jan 22, 2018
144f0cb
add test server gzip support
hthetiot Jan 24, 2018
92e0408
add test/test-utils.js config server gzip support
hthetiot Jan 24, 2018
9fc58d1
clientLogLevel fix and introduce default useWorker
hthetiot Jan 24, 2018
91a6bda
add http2-worker-itest gzip+string tests
hthetiot Jan 24, 2018
e96730a
fix bad false positive gzip test
hthetiot Feb 1, 2018
149ce92
improve gzip test server
hthetiot Feb 1, 2018
cf583dc
Merge branch 'develop' into features/workerSupport
hthetiot Feb 1, 2018
eaece23
jshint
hthetiot Feb 1, 2018
2fd3342
Merge branch 'features/workerSupport' of github.com:kaazing/http2-cac…
hthetiot Feb 1, 2018
8780bec
add getSocketTestServer in test/test-utils and simplify integration-t…
hthetiot Feb 6, 2018
d202d3b
improve worker integration-test
hthetiot Feb 6, 2018
246df2c
update worker test to use 1MB for large payload test
hthetiot Feb 6, 2018
eb99f10
merge develop
hthetiot May 29, 2018
4a875e9
merge develop
hthetiot May 29, 2018
2150ff7
merge develop
hthetiot May 29, 2018
b509f3f
fix bad test merge
hthetiot May 29, 2018
451a3ca
merge develop
hthetiot May 29, 2018
568f7e2
fix duplicate Reset Headers
hthetiot May 29, 2018
00a93a0
fix worker spec
hthetiot May 29, 2018
f6affc0
fix neutered and could not be clone on dataToType arraybuffer
hthetiot May 29, 2018
4ca4cc9
remove debug
hthetiot May 29, 2018
d264d31
fix previous frame getter called on defineXhrResponse
hthetiot May 29, 2018
32b04ec
optimize toArrayBuffer and dataToType
hthetiot May 29, 2018
fc033ec
Merge branch 'develop' into features/workerSupport
hthetiot May 29, 2018
474e835
merge develop
hthetiot Aug 21, 2018
379b9ec
merge develop
hthetiot Aug 21, 2018
0a0e5de
merge develop
hthetiot Dec 6, 2018
ffdd40c
prepare HISTORY.md
hthetiot Dec 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@
//"iLoveDouglas"
],
"indent" : 4, // Specify indentation spacing
"mocha": true,
"globals": {
//"console": true,
"WebSocket": false,
"WorkerGlobalScope": false,
"Buffer": false,
"require": false,
"exports": false,
Expand Down
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Version history
===============

### 0.2.1x (2018-12-xx)
* Add Websocket connection support inside Worker thread to accelerate decompresion and free Window Rendering thread.

### 0.2.15 (2018-12-06)
* Fix possible cache hit on POST|PUT|DELETE (via #118)

Expand Down
41 changes: 38 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,47 @@ In full
The integration tests require Java JDK 8 be installed.

```bash
npm i
npm install
npm run build
```

### Browser Compatibility

| Feature/Browser | Chrome | Firefox | Safari | Internet Explorer |
|-----------------|--------|---------|--------|-------------------|
| http2 over ws | x | x | x | x (IE 10+) |
| ws in worker | x | x | x | x (IE 11+) |
| arraybuffer | x | x | x | x (Edge) |

### Native Browser Implementations

The example directory contains a simple Web App which tests whether the browser
supports native HTTP2 push with SPEC compliant caching.


Start origin
```
http-server -c-1
```

Start data server
```
node server.js
```

Visit page `https://localhost:8080/` (Note: need to trust TLS cert)


### Integration Tests

```bash
npm run test:browser

Run integration tests on client side:
```
npm run integration
```

Run client worker integration tests"
```
npm run integration:worker
```

1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

require('./lib/http2-cache');
3 changes: 3 additions & 0 deletions integration-test/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mocha": true
}
Loading