We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c312cb7 + 9919cec commit c52c26eCopy full SHA for c52c26e
server.js
@@ -494,7 +494,11 @@ class EleventyDevServer {
494
495
async onRequestHandler (req, res) {
496
res = wrapResponse(res, content => {
497
- if(this.options.liveReload !== false) {
+
498
+ // check to see if this is a client fetch and not a navigation
499
+ let isXHR = req.headers["sec-fetch-mode"] && req.headers["sec-fetch-mode"] != "navigate";
500
501
+ if(this.options.liveReload !== false && !isXHR) {
502
let scriptContents = this._getFileContents("./client/reload-client.js");
503
let integrityHash = ssri.fromData(scriptContents);
504
0 commit comments