Skip to content

Commit 2e0445c

Browse files
author
Arpit Malik
committed
fix: Disable cache control and x formatted by header
1 parent d64b51a commit 2e0445c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/EventSource.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ class EventSource {
7777
}
7878

7979
this._xhr.setRequestHeader('Accept', 'text/event-stream');
80-
this._xhr.setRequestHeader('Cache-Control', 'no-cache');
81-
this._xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
8280

8381
if (this.headers) {
8482
for (const [key, value] of Object.entries(this.headers)) {

0 commit comments

Comments
 (0)